Rule-Based File Organizing

DiskBoss provides a rich and powerful set of automated, rule-based file management capabilities allowing one to copy, move, delete, compress, link, etc. files or file categories matching user-specified rules and policies based on the file name, extension, location, category, last access date, modification date, creation date, binary and text patterns, file size, attributes, JPEG EXIF tags, etc.

The user is provided with the ability to define one or more file management actions to be executed and specify file matching rules defining files or file categories the actions should be applied to. During runtime, DiskBoss will scan input disks and directories, apply file matching rules and execute the specified file management actions on matching files.

In order to ensure proper operation of file organizing actions, DiskBoss provides easy-to-use preview capabilities allowing one to review and manually confirm each specific file management action. Once tested and validated in the preview mode, file organizing operations may be configured to run in a fully-automatic and unattended mode, executed periodically at specific time intervals, triggered by changes in a disk or directory or executed from a shell script or a batch file using the DiskBoss command line utility.

In order to add a new file organizing command, press the 'Add' button, select an appropriate file organizing action and specify one or more file matching rules. Select a previously defined command and press the 'Edit' button to edit the selected file organizing command. Or press the 'Delete' button to delete the selected command. Use the preview mode combo box to enable or disable the preview dialog.

The organizing command dialog provides the ability to select an appropriate file organizing action, specify one or more file matching rules and configure additional action-specific advanced options. During runtime, all the specified file organizing actions will be evaluated in the same order as displayed in the file organizing commands view. The first matching action will be executed and the remaining actions will be just skipped from the organizing process.

DiskBoss provides a large number of different types of file matching rules allowing one to match files by the file name, extension, category, size, attributes, text or binary patterns, JPEG EXIF tags, creation, last access and modification dates, etc. The user is provided with the ability to combine multiple file matching rules and apply logical AND/OR operators. Moreover, power computer users and IT administrators can define hierarchical file matching rules capable of precisely selecting the exact file type or groups of files according to user-specific needs. In order to add a nested list of rules, press the right mouse button over the top level list of file matching rules and select the 'Add Nested Rule List' menu item. On the nested rules dialog add one or more file matching rules and press the 'Ok' button.

The DiskBoss' file organizer allows one to copy, move, delete, link and compress files matching user-defined rules. In addition, the user is provided with the ability to execute a custom command for files matching the specified rules passing the file name as an argument. Use the file organizing action combo box to select one of the following file organizing actions:

  • Copy Files To - copies matching files to the specified destination directory
  • Move Files To - moves matching files to the specified destination directory
  • Delete Files - deletes matching files, optionally wipes data from the disk
  • Execute Command - executes the specified custom command for matching files
  • Move and Link To - moves files and places links instead of original files
  • Compress - compresses matching files in-place
  • Compress and Copy To - copies compressed files to the destination directory
  • Compress and Move To - moves compressed files to the destination directory

DiskBoss is capable of organizing files in two modes: with preview and without preview. When the preview mode is enabled, DiskBoss scans the selected files and directories, evaluates the specified file matching rules and displays a preview dialog showing file organizing actions that should be executed allowing one to review and manually confirm each specific file organizing action.

The preview mode is very useful for testing and verification purposes, but sometimes it may be required to execute file organizing operations fully automatically without showing the preview dialog. For example, automatically executed periodic file organizing operations may be silently performed in the background using the DiskBoss command line utility or DiskBoss Server, which runs in the background as a service and can execute file organizing operations in a fully-automatic, unattended mode. In order to disable the preview dialog for a file organizing operation, open the operation dialog, change the preview mode to 'Organize Without Preview' and press the 'Save' button. Without preview, file matching rules and evaluated and actions executed on-the-fly, which significantly reduces memory consumption when processing large file systems containing millions of files.

One of the most powerful and flexible capabilities of DiskBoss is the ability to pre-configure custom file organizing operations as user-defined commands and execute such commands in a single mouse click using the DiskBoss GUI application or direct desktop shortcuts. User-defined commands may be managed and executed through the commands dialog or the commands tool pane. In order to add a new command through the commands pane, press the right mouse button over the pane and select the 'Add New - File Organizing Command' menu item. In order to execute a previously saved command, just click on the command item in the commands tool pane or create a direct desktop shortcut on the Windows desktop.

Another option to execute file organizing commands is to drag-and-drop files and/or directories into a file organizing command item in the user-defined commands tool pane. In order to configure a file organizing command to accept drag-and-drops, open the command dialog and select the 'Use External Inputs' input mode. Now, select any files and/or directories in the DiskBoss' file navigator and drag-and-drop the selected files and directories into the file organizing command in the user-defined commands tool pane. DiskBoss will process the selected files and directories and execute the specified file organizing actions for matching files.

Sometimes, it may be required to execute a file organizing operation periodically at specific time intervals. The first option to do that is to configure a periodic job in the DiskBoss GUI application and select the required file organizing command to be executed periodically. Another option is to use DiskBoss Server, which runs as a service in the background and may be used to periodically execute file organizing operations in a fully automatic, unattended mode.

DiskBoss provides the ability to monitor one or more disks or directories and automatically execute a file organizing operation after a user-specified number of changes is detected. In order to execute a file organizing command using the DiskBoss' disk change monitor, create a new disk change monitoring command, specify one or more disks or directories that should be monitored, select the 'Actions' tab, specify the number of disk changes that should trigger the file organizing command and selected the name of the file organizing command that should be executed once the disk change monitor reaches the specified number of changes.

In addition to the DiskBoss GUI application, power computer users and IT administrators are provided with the ability to execute user-defined file organizing operations from batch files and shell scripts using the DiskBoss command line utility, which is located in the 'ProductDir\bin' directory. In order to execute a user-defined file organizing command using the DiskBoss command line utility, open the command prompt window in the 'ProductDir\bin' directory and type the following command:

diskboss -execute <Organize Command Name>

DiskBoss will execute the specified file organizing command and display the total number of files and disk space in the specified disks and directories and the number of files that were actually processed.