Search

 

Use the Search function to quickly find files.  The options available in the search dialog are very much like a DiskFerret filter and allow searching by file types, names, owner, attributes, size or date. In addition, the search function allows searching for specified text within a file. 

Search is invoked by clicking the search icon Description: Description: C:\apps\DiskFerret\src\appGUI\images\Search24.png on the application toolbar or by selecting Tools->Search on the application menu.  When the search dialog is invoked, the options that were used for your last search are displayed, providing a way to repeat the last search.  The search dialog consist of a combination of file name filters, owner name filters, file attributes, file sizes and/or file dates, the path to search and text to search for inside the files matching the search criteria. 

 

 

Path

The Path field contains the path that will be searched.  This value defaults to the currently selected path in the tree view.  It can be changed by entering a path value, or by selecting a drive or path via the Browse button.  The Path field must contain a valid path before the search button is enabled.

 

Text

The Text field contains text to find within files that match all of the other criteria specified.  This field is optional.  Searching for text can take a long time because each file must be read until the text is located or until the end of the file is reached.  When searching for text the best practice is to limit the number of files that need to be read by specifying other constraining criteria.  Regular expressions provide a concise and flexible means for identifying strings of text and are supported.  A full explanation of regular expressions is beyond the scope of this document, however many information sources are available on the internet.  If you want to use regular expressions, check Regular Expressions options. 

 

Note: For those familiar with regular expressions, DiskFerret actually always uses regular expressions when searching for text regardless of the regular expression checkbox state.  If regular expression is checked, the text supplied is used as is.  If not, the text supplied is modified into a regular expression.  For example, if searching for “big contract”, the text would be modified to “.*big contract.*”.

 

Wildcards

The File name filters section is a multi-line text field.  Each line represents a wildcard specification or a comment.  Comments are lines that start with a semicolon (;) and provide a method to document the intent of your wildcards.  At least one file name or wildcard must be specified.

 

Wildcards can be specified as either an *, or a ? and can be used in the File name filters or the Owner name filters section.  An asterisk (*) is used to match one or more characters in a file or owner name.  A question mark (?) is used to match only one character in a file or owner name.  To configure a filter rule to include only Microsoft Word and Excel documents you could use the following File name filters:

*.doc

*.xls

 

Regular expressions are supported for file name searching when the regular expression checkbox is selected. 

 

Owner

The File owner filters section is a multi-line text field.  Each line represents an owner specification or a comment.  Comments are lines that start with a semicolon (;).  Owner names should be enter in the form of domain\username.  This field is optional.

 

Regular expressions are supported for file owner name searching when the regular expression checkbox is selected. 

 

Attributes

The attribute section lets you specify which file attributes, if any, that you want to use for the filter.  The “Filter on file attributes” checkbox must be checked before any attributes will be used by the filter rule.  If you are unfamiliar with file attributes the following table list Microsoft’s definition for each file attribute:

Member name

Description

Archive

Supported by the .NET Compact Framework.

The file's archive status. Applications use this attribute to mark files for backup or removal.

Compressed

Supported by the .NET Compact Framework.

The file is compressed.

Device

Supported by the .NET Compact Framework.

Reserved for future use.

Encrypted

Supported by the .NET Compact Framework.

The file or directory is encrypted. For a file, this means that all data in the file is encrypted. For a directory, this means that encryption is the default for newly created files and directories.

Hidden

Supported by the .NET Compact Framework.

The file is hidden, and thus is not included in an ordinary directory listing.

Normal

Supported by the .NET Compact Framework.

The file is normal and has no other attributes set. This attribute is valid only if used alone.

NotContentIndexed

Supported by the .NET Compact Framework.

The file will not be indexed by the operating system's content indexing service.

Offline

Supported by the .NET Compact Framework.

The file is offline. The data of the file is not immediately available.

ReadOnly

Supported by the .NET Compact Framework.

The file is read-only.

ReparsePoint

Supported by the .NET Compact Framework.

The file contains a reparse point, which is a block of user-defined data associated with a file or a directory.

SparseFile

Supported by the .NET Compact Framework.

The file is a sparse file. Sparse files are typically large files whose data are mostly zeros.

System

Supported by the .NET Compact Framework.

The file is a system file. The file is part of the operating system or is used exclusively by the operating system.

Temporary

Supported by the .NET Compact Framework.

The file is temporary. File systems attempt to keep all of the data in memory for quicker access rather than flushing the data back to mass storage. A temporary file should be deleted by the application as soon as it is no longer needed.

 

Size

The size section lets you filter based on file sizes, is any, with the following operators: greater than, less than, equal to, or between.

Date

The size section lets you filter based on the last modified date, if any, for files with the following operators: greater than, less than, equal to, or between.  You can specify a date using the date widget, or by entering a date in the format or MM/DD/YYYY.

Description: Description: C:\apps\DiskFerret\help\Search_files\image003.jpg 

 

Search Button

When the search button is clicked the search begins immediately.  Any data view can be used in conjunction with search results, but the data view is automatically set to the detail view in the Top Files tab because this is the most likely view desired for most search operation.  Be aware that the number of files found could be larger than the current Max. # of Files setting in the Top Files tab.  If needed, increase the Max. # of Files via the drop down list .

 

While search results are displayed, the background of all data views are painted with a transparent repeating search icon over the view to indicate that the view is displaying search results.

 

Also, while search results are active, the search button in the application toolbar is displayed as if it is pressed.  When you are finished analyzing search results click the search icon on the toolbar or by selecting Tools->Turn Search Off via the application menu.

 

 

Description: Description: C:\apps\DiskFerret\help\Deleting Files_files\image004.jpgTip:  Use preconfigured Filters in conjunction with search to limit the number of files that must be evaluated for the specified search criteria.