gbDuplicateFileFinder is a freeware utility for finding files which contain a specified search string.
Searches may be limited to a single folder or may include subfolders. Multiple file specifications, wild card, and case-sensitivity are supported.
Line numbers containing the search string, as well as lines adjacent to matching lines, may optionally be displayed in the search result.
To install, simply unzip the installation file (gbduplicatefilefinder.zip) in a folder of your choice. In addition to the EXE, the installation includes gbDuplicateFileFinder source code, the resource file, and image files.
|Download (v1.3, 135K)|
That's it! The Search returns a list of files which match the selected criteria. Matching lines numbers and context lines may optionally be displayed. You can also double-click on a matching file to open the file in the default client for that file type.
Optionally, lines immediately before and after the matching lines can be dislayed to show the context in which the match was found:
|Folder||Opens a dialog from which to select the base folder.|
|Search||Search for files which match the file specifications and search terms, as modified by other settings)|
|All||Search for files which match the specified file specifications. This option ignores the search term.|
|Subfolders||Includes subfolders in the search|
|Match Case||Case-sensitive search for search string|
|Settings||Toggles display between Files, Lines Numbers, Context settings. Includes a dropdown menu (discussed in the next section).|
|Online Help||Opens the gbDuplicateFileFinder online Help page|
|Files||Display contains only a list of files which contain the search tring|
|Line Numbers||Display contains list of files which contain the search string. Also show lines/lines numbers within the file which contain the search string.|
|Context||Display contains list of files which contain the search string. Also show lines/lines numbers within the file which contain the search string. Additional lines before and after the matching lines are shown.|
|Complete String||Search looks for the complete search string, not the individual words|
|All Words (AND)||Searches for files containing all of the individual words|
|Any Word (OR)||Searches for files containing at least one of the individual words|
|Regular Expressions||Searches for files containing a match to the search term, which is treated as a regular expression|
|Hidden||Search will find hidden files.|
|System||Search will find system files.|
|Whole Words||When searching for individual terms, terms must not be part of a larger word.|
Note: Whole words not supported at this time
|Words On Line||When doing an AND search, terms must be found on one line (in any order)|
|Detect Unix Line Feed||Converts 0A bytes to 0D0A, if not already present as a pair|
|Trim Search Term||Removes leading/trailing spaces, plus strings of > 1 space from the search term|
|Color Lines||Line background alteranates every 3 lines (easier for the eye to follow)|
|AutoSearch On Startup||On startup, restores the last search session.|
|All Toolbar Buttons||Toggles display of additional toolbar buttons (places the Files, Line Numbers, and Context menu options on the toolbar).|
|Select Context Width||Open dialog for entering number of context lines to be shown on either side of matching lines (Context Mode only).|
Three types of searches are supported.
Words On Line
By default, when doing an AND search, a file must contain all of the individual search terms. With the this option, the file must contain at least one line which contains all of the search terms.
By default, Hidden/System files are not included in the search. This option includes those files in the search.
This option encloses the file specification with a pair of asterisks, "*". Some users like to type in a file specification such as "dog" and want all files whose names contain the word "dog". A file specification of "*dog*.*" will work, but this options avoids the need to type in the extra characters.
Trim Search Terms
By default, spaces types into the search string are used in the search. This options removes starting/ending spaces from the search term.
Each of the context menu items are discussed below.
ListView Context Menu
Search String ComboBox
Name Filter ComboBox
Parent Folder ComboBox
gbDuplicateFileFinder saves all of it's options in an INI file, which is placed in the same folder as the EXE.
Comments and suggestions are welcome!