DiskSorter Logo

Excluding Subdirectories from File Classification Process

Sometimes, it may be required to exclude one or more subdirectories from the file classification process. For example, if you need to classify files stored on a disk excluding one or two special directories, you may specify the whole disk as an input directory and add the directories that should be skipped to the exclude list.

File Classification Exclude Directories

In order to add one or more directories to the exclude list, open the file classification profile dialog, press the 'Options' button, select the 'Exclude' tab and press the 'Add' button. All files and subdirectories located in the specified exclude directory will be excluded from the file classification process. In addition, advanced users are provided with a number of exclude directories macro commands allowing one to exclude multiple directories using a single macro command.

DiskSorter provides the following exclude directories macro commands:

  • $BEGINS <Text String> - this macro command excludes all directories beginning with the specified text string.
  • $CONTAINS <Text String> - this macro command excludes all directories containing the specified text string.
  • $ENDS <Text String> - this macro command excludes all directories ending with the specified text string.
  • $REGEX <Regular Expression> - this macro command excludes directories matching the specified regular expression.

For example, the exclude macro command '$CONTAINS Temporary Files' will exclude all directories with 'Temporary Files' at any place in the full directory path and the exclude macro command '$REGEX \.(TMP|TEMP)$' will exclude directories ending with '.TMP' or '.TEMP'.

DiskSorter News

6-Jun-2026

DiskSorter v18.2 redesigns the file classification progress dialog, improves the performance of the file classification operations and improves the fault tolerance of the file classification operations. In addition, the new version improves the disk activity monitor tool pane, improves the system status monitor tool pane, improves the main DiskSorter GUI application and fixes a number of bugs.

8-May-2026

DiskSorter v18.1 adds support for new file types to the built-in file classification plug-ins, improves the file classification pie charts, improves the file classification results dialog and improves the file classification plug-ins designer. In addition, the new product version adds support for new types of file matching rules, improves the file matching rules dialog and fixes a number of bugs.

More News