DiskBoss's built-in search engine provides a rich set of features allowing one to define very sophisticated
and focused search queries. The purpose of this tutorial is to pass over all the currently existing search
capabilities and to show the user helpful techniques and usage models. First of all let's begin with file
matching rules. An unlimited number of file matching rules may be defined for each search query. To add a
file matching rule click on the 'Add' button on the advanced search dialog.
The advanced search criteria displays the list of existing file matching rules and a number of parameters
required for the currently selected rule. The set of search parameters is unique for each file matching
rule and the dialog is changing dynamically as the user selects a specific file matching rule. For example,
when the user selects the file size matching rule, the dialog will display a list of controls allowing one
to specify the comparison operator, the expected file size and size units.
The category file matching rule searches files related to a specific file class or class group. This is very
useful and generic file matching rule allowing one to find a broad or more focused group of files depending
on specific needs. For example, if you need to find all textual files on your computer, you can select the
category 'Documents, Books and Text Files' from the default file hierarchy. A category may contain a large
number of sub-categories and file classes and there is no need to know or remember extensions of all the
required files to perform the search operation.
On the other hand, if you need to perform a more focused search operation, you can select a sub-category.
For example, the sub-category 'Documents' from the default file hierarchy will find all document files,
but not books, presentations or spreadsheets. Even more focused search operations may be performed by
selecting a specific file class. For example, select 'MS Word Documents' to find Microsoft Word documents
only. The category file matching rule allows one to perform very flexible search operations while providing
a truly simple usage model for regular computer users without specific knowledge about file types and extensions.
Another useful file matching rule is the text pattern rule. This rule searches for specific text patterns inside files.
The text matching rule may be very useful when combined with the category matching rule. For example, you can search for
all types of documents containing specific text keywords.
One of the most frequently used search operations is to find recently modified or created files. The DiskBoss's search
engine provides three time matching search rules allowing one to search files by the creation time, the last modification
time and the last access time. Sometimes, there is a need to find very specific files requiring search queries with
numerous file matching rules. For example, in order to find documents containing a specific text that were modified today,
you need to define a search query with three file matching rules. The first one will match files categorized as documents.
The second rule will search for specific text inside files. And the last one will match files that were modified today.
In order to keep you hard disk in good shape, it may be useful to periodically clean unused files and reclaim wasted
storage space. The most efficient way to do that is to find large files that have not been accessed for a long time.
Use the file size matching rule in conjunction with the access time matching rules to find large files that have not
been accessed for months or years. Also it may be useful to mix these rules with the file category matching rule.
For example, you can define a search query that will find all large pictures, songs or movies that have not been
accessed for a while.
Advanced computer users may be interested to find files by file attributes such as 'System', 'Hidden', 'Read-Only',
etc. In order to do that, the DiskBoss's search engine provides the file attribute matching rule. Select the rule
in the rule list and press the 'Select Attributes' button to see all the file attributes that may be selected.
The attributes selection dialog displays the list of all the file attributes supported by the operating system
and may be significantly different depending on the used platform.
In some situations we need to look inside a file to make the final decision whether the file is what we are looking for.
Two files may have identical file names and extensions, but that does not mean that these files are of the same file type.
Various types of files have specific headers, patterns and codes located on designated positions and the only way to make
a guaranteed decision about the type of a file is to check the file's content for the type's specific binary patterns.
In order to do that, DiskBoss provides the binary pattern matching rule, which is capable of checking binary patterns
located on specific positions inside files. This file matching rule allows one to resolve ambiguous situations when
no other rules can help or when you need to discover files with intentionally changed file names or extensions.
Typically, users search by entering all or a part of the file name they are looking for. This approach works perfectly
most of the time, but sometimes there is a need for more flexible and precise file name matching capabilities. The file
name matching rule allows one to specify the file name pattern and the exact location where in the file name the pattern
should be found. The user is provided with the ability to find file name patterns in the beginning, the end or in any
place of the file name.
Sometimes, it may be necessary to search files according to multiple criteria with nested logical operations.
For example, it may be required to find all documents and image files that were modified during the last month.
In this case, we need to define a composite rules list where the top level list will contain a rule matching
files that were modified during the last month and a nested rules list containing rules matching documents
and image files. In order to match all the specified file categories, the nested rule list should be set to
the logic 'OR', while the top level rule list should be set to the logic 'AND'.
In order to add a nested rule list to a search operation, press the right mouse button over the rule list and
select the 'Add Rule List' menu item. The nested rule list dialog provides exactly the same features as the regular
search rule list and allows one to construct a hierarchy of multi-level search rules with an unlimited depth and
complexity. In order to edit a nested rule list, just double-click on a rule list item in the rules view. In order
to delete a nested rule list, select the list item in the rules view and press the 'Delete' button.
The search results dialog displays the search status, the number of files found, the total amount of storage space
occupied by matching files and the total number of files processed during the search process. DiskBoss allows one to
perform numerous operations with search results including copy, move or delete. To perform an operation select one
or more files in the results view and press an appropriate button. In addition, the user is provided with the ability
to export search results into a number of standard formats such as HTML, Excel CSV and ASCII text.
Frequently used file search operations may be customized for user-specific needs, pre-configured as
user-defined commands and executed in a single mouse click using DiskBoss's main GUI application or direct
desktop shortcuts. In addition, DiskBoss Professional and DiskBoss Ultimate provide a command line tool allowing
one to execute user-defined file search commands from batch files and shell scripts or schedule
periodic file search operations using a general purpose command scheduler. For more details about
user-defined commands refer to the User-Defined Commands page.