SearchMyFiles

Package: WA2L/WinTools 1.2.08
Section: General Commands (1)
Updated: 02 July 2019
Index Return to Main Contents

 

NAME

SearchMyFiles - Alternative to Windows™ 'Search For Files And Folders'

 

SYNOPSIS

WA2LWinTools/bin/SearchMyFiles [ -h | -i | -u | -V ]

SearchMyFiles [ options ]

 

AVAILABILITY

WA2L/WinTools

 

DESCRIPTION

SearchMyFiles is an alternative to the standard "Search For Files And Folders" module of Windows.

It allows you to easily search files in your system by wildcard, by last modified/created/last accessed time, by file attributes, by file content (text or binary search), and by the file size. SearchMyFiles allows you to make a very accurate search that cannot be done with Windows search.

For Example: You can search all files created in the last 10 minutes with size between 500 and 700 bytes.

After you made a search, you can select one or more files, and save the list into text/html/csv/xml file, or copy the list to the clipboard.

 

Using SearchMyFiles

After running it, the 'Search Options' dialog-box is displayed.

Select the base folders or drives that you want to search, the wildcard, and other search option that you need. After choosing the right search option, click 'Ok' in order to start the search.

While in search process, the found files will be displayed in the main window. If you want to stop the search, you can simply click the 'Stop' menu.

After the search is finished, you can select one or more files, and then save the list into text/html/csv/xml file by using the 'Save Selected Items' option.

You can also select a single file and open it with the default program by using the 'Open Selected File' option.

 

Search options

Here's a small explanation about all available search options:

Base Folder:
Specifies the folder that you want to scan. if 'Scan Subfolders' option is also checked, all subfolders under this folder will also be scanned. You can also specify multiple folders, delimited by semicolon. For example:

  c:\temp;d:\myfolder;d:\nirsoft

Excluded Folders:
Allows you to specify one or more folders (delimited by semicolon) that you want to exclude from the scan. For example: If you want to scan you entire C: drive, but without C:\Windows and C:\Documents and Settings, you should type

  'C:\' in Base Folder
  'C:\Windows;C:\Documents and Settings' in Excluded Folders

field. You can also specify wildcard in this field, as well as folder name without path, for example:

  Release - Exclude all folders that their name is 'Release'.
  Documents* - Exclude all folders that their name begins with 'Documents'.

Include Only Folders:
Allows you to restrict the search to specific folders. You can specify one or more folders (delimited by semicolon or comma) and wildcards are allowed. For example, if the base folder is c:\Shared and you want to search only subfolders with the name 'Images', you can specify the following wildcard in this field:

  c:\Shared\*\Images

You can also specify wildcard without path, for example - for searching only in folders that their name begins with nirsoft, you can specify the following wildcard:

  nirsoft*

Files Wildcard:
Specifies the wildcard for scanning the files. You can specify multiple wildcards delimited by semicolon or by comma, for example:

  *.exe;*.dll;*.ocx or *.exe,*.dll,*.ocx. 

Be aware that if you want to search a filename containing semicolon or comma, you must put it in quotes. For example:

  "Hello, World.txt" 

If you don't put it in quotes, SearchMyFiles will consider it as 2 separated files.

Subfolders Wildcard:
Specifies the wildcard for scanning the subfolders. For example, If you want to only scan the subfolders beginning with 'a' letter, you can specify

  a*.*

in this field.

Exclude Files:
Specifies one or more file extensions or wildcards to exclude from the search. You can specify multiple extensions or wildcards delimited by semicolon, by comma, or by space character, for example:

  exe, dll, ocx

File Contains:
Allows you to search by the content of the files. You can make a text search or binary search. On binary search, you should specify the binary sequence that you want to search in Hex dump format, for example:

  'A2 C5 2F 8A 9E AC'.

Search multiple values (comma delimited): When this option is selected, you can specify multiple values to search in the 'File Contains' field. The multiple values are delimited by comma, and optionally also with quotes. For example:

  NirSoft, Nir Sofer, Search, 123, "abc,123"
  A1 82 A7 AC, 27 9A CC FF, A1 B2 71 22

File Size:
Specifies that you want to search files in specified size range (For example: search all files with size between 238 and 741 bytes).

Attributes:
Specifies that you want to search files with specific attributes. For example: if you want to find all files that are read-only but are not hidden, you should select 'Yes' for Read Only attribute and 'No' for Hidden attribute.

File Time:
Allows you to search files that have been created, modified, or accessed in the specified time range. You can specify an accurate time range, for example:

  10/12/2008 12:32:11 - 12/12/2008 13:32:56 

or you can specify the last number of seconds/minutes/hours/days. For example, you can search all files that have been modified in the last 10 minutes.

Search Subfolders:
If this option is checked, SearchMyFiles will scan all subfolders under the specified base folders.

Find Folders:
If this option is checked, SearchMyFiles will search for folders according to the other search options. If this options is not selected, SearchMyFiles will only search for files.

 

Duplicate Search Mode

SearchMyFiles also allows you to search duplicate files on your system. In order to use this feature, simply change the search mode in the 'Search Options' window to 'Duplicates Search'.

When you switch to 'Duplicates Search' mode, all other search options are still relevant, and SearchMyFiles will scan your files according to these settings. For example: if you choose to search for files larger than 500KB, SearchMyFiles will only search for duplicate files that their size is larger than 500KB.

In fact, it's highly recommended to narrow your duplicate search by using date/size restrictions, because if you don't do it, the duplicate search will be very slow, and it'll consume a large amount of memory.

When you are in 'Duplicates Search' mode, SearchMyFiles will first scan all files and folders according to your settings, and only after the scan is finished, it'll locate the duplicate files and add them to the files list on the main window. SearchMyFiles automatically mark the duplicate files with identical colors (up to 64 different colors).

There is also a 'Duplicate Number' column, which displays identical number for each chunk of duplicate files. You can click the 'Duplicate Number' column header in order to sort by this column and to easily view the chunks of duplicate files.

Be aware that the duplicate search is done by making a binary comparison of the files with the same size, byte by byte.

 

Non-Duplicates Search Mode

This mode is the opposite of Duplicate Search Mode, which means that it displays all files in the specified folders that are not duplicated.

 

Duplicate Names Search Mode

In this mode, SearchMyFiles displays all files that have the same name. The 'Duplicate Names Search' mode has 4 sub-modes:

-
Show all duplicate names (Files and Folders)

-
Show all duplicate names - only files, no folders

-
Show only duplicate names with identical content: In this mode, SearchMyFiles first finds files with the same name, and then compares the content of these files, byte by byte. The files are displayed only if they are completely identical.

-
Show only duplicate names with non-identical content: In this mode, SearchMyFiles first finds files with the same name, and then compares the content of these files, byte by byte. The files are displayed only if their content is not identical.

 

Summary Mode

In this mode, SearchMyFiles displays a general summary of all scanned folders, instead of files list. For every folder, the following summary information is displayed: Total size of all files, total size on disk, total files count, and number of hidden/read-only/system/compressed files. You can watch the summary information for the specified folder only or for the specified folder and all its subfolders.

 

Use SearchMyFiles thru 'SendTo' menu

The SearchMyFiles command can be installed to the 'Send To' context menu in 'Microsoft™ Windows Explorer' for most convenient usage. To do so, invoke SearchMyFiles -i once, respectively select the related option in config(1m).

 

OPTIONS

-h
usage message.

-i
install the SearchMyFiles command as menu point 'SearchMyFiles' to the 'Send To' context menu in 'Windows Explorer'.

-u
uninstall the SearchMyFiles shortcut from the 'Send To' context menu in 'Windows Explorer'.

-V
print program version.

You can use the following command-line option in order to execute a search without displaying any user interface and save the result into a file. Be aware that when you do that, the only way to stop the search is by terminating the process of SearchMyFiles (SearchMyFiles.exe):

/config <Filename>
Loads the configuration from the specified .cfg file. Can be used in conjunction with the save options, like /stext, /scomma and so on.

/StartSearch
Tells SearchMyFiles utility to start the search immediately, without displaying the 'Search Options' dialog-box, according to the last configuration or according to the config file specified in /config parameter.

/ExplorerCopy
Search files without user interface according to the configuration file, and then copy the found files list to the clipboard in Windows Explorer format (Like 'Explorer Copy' option)

/SaveDirect
Save the files list in SaveDirect mode. For using with the other save command-line options (/scomma, /stab, /sxml, and so on...) When you use the SaveDirect mode, the details of found files are saved directly to the disk, without loading them into the memory first. This means that you can save a list with large amount of files into your disk without any memory problem, as long as you have enough disk space to store the saved file. The drawback of this mode: You cannot sort the files list according to the name or any other column. The details of files are simply saved in the order that SearchMyFiles found them.

/stext <Filename>
Search and save the result into a regular text file.

/stab <Filename>
Search and save the result into a tab-delimited text file.

/scomma <Filename>
Search and save the result into a comma-delimited text file (csv).

/stabular <Filename>
Search and save the result into a tabular text file.

/shtml <Filename>
Search and save the result into HTML file (Horizontal).

/sverhtml <Filename>
Search and save the result into HTML file (Vertical).

/sxml <Filename>
Search and save the result to XML file.

/sort <column>
This command-line option can be used with other save options for sorting by the desired column. If you don't specify this option, the list is sorted according to the last sort that you made from the user interface. The <column> parameter can specify the column index (0 for the first column, 1 for the second column, and so on) or the name of the column, like "Filename" and "Created Time". You can specify the '~' prefix character (e.g: "~Created Time") if you want to sort in descending order. You can put multiple /sort in the command-line if you want to sort by multiple columns.

Examples:

  SearchMyFiles.exe /shtml "f:	emp1.html" ^
    /sort 2 /sort ~1
    
  SearchMyFiles.exe /shtml "f:	emp1.html" ^
    /sort "~Extension" /sort "Filename"

/nosort
When you specify this command-line option, the list will be saved without any sorting.

You can also use the following command-line option to override the configuration loaded from the .cfg file:

/FilesWildcard <Wildcard>
Specifies the files wildcard.

/SubfoldersWildcard <Wildcard>
Specifies the subfolders wildcard.

/BaseFolder <Folder>
Specifies the base folders to search.

/ExcludedFolder <Folder>
Specifies the folders to exclude in the search.

/ScanSubfolders <Value>
Specifies whether to search in subfolders. 1 = Yes, 0 = No.

/ExcludeExtensions <Extensions>
Specifies one or more extensions to exclude.

/FindFiles <Value>
Specifies whether to find files. 1 = Yes, 0 = No.

/FindFolders <Value>
Specifies whether to find folders. 1 = Yes, 0 = No.

/UseFileSizeAtLeast <Value>

/UseFileSizeAtMost <Value>
Specifies whether to use the "At Least" and "At Most" file size filter. 1 = Yes, 0 = No.

/FileSizeAtLeast <Value>

/FileSizeAtMost <Value>
Specifies the values of file size filters.

/FileSizeAtLeastUnit <Value>

/FileSizeAtMostUnit <Value>
Specifies the units of file size filters. 1 = Bytes, 2 = KB, 3 = MB, 4 = GB

/FileAttrReadOnly <Value>

/FileAttrSystem <Value>

/FileAttrHidden <Value>

/FileAttrArchive <Value>

/FileAttrCompressed <Value>

/FileAttrEncrypted <Value>
Specifies the file attributes filter. 1 = Both, 2 = No, 3 = Yes.

/FileContains <Value>
Specifies the 'File Contains' option. 0 = None, 1 = Text, 2 = Binary.

/FileContainsText <String>
Specifies the 'File Contains' text.

/FileContainsCaseSensitive <Value>
Specifies whether the 'File Contains' string is case sensitive. 1 = Yes, 0 = No.

/FileTimeCreated <Value>

/FileTimeModified <Value>

/FileTimeAccessed <Value>
Specifies the filter option by file time. 0 = All Times, 1 = Time Range, 2 = Last XX Seconds, 3 = Last XX Minutes, 4 = Last XX Hours, 5 = Last XX Days.

/FileTimeCreatedLastXX <Value>

/FileTimeModifiedLastXX <Value>

/FileTimeAccessedLastXX <Value>
Specifies the last xx seconds/minutes/hours/days values.

/FileTimeAccessed1 <Value>

/FileTimeAccessed2 <Value>

/FileTimeModified1 <Value>

/FileTimeModified2 <Value>

/FileTimeCreated1 <Value>

/FileTimeCreated2 <Value>
Specifies date/time range values. The date/time value must be in the following format: dd-mm-yyyy hh:nn:ss

For example:

  SearchMyFiles.exe /FileTimeModified1 "10-01-2010 12:00:00" ^
    /FileTimeModified2 "18-01-2010 08:00:00"

/SubFolderDepth <Value>
Specifies the subfolders depth. 0 = Unlimited.

/UseMaxNumOfFiles <Value>
Specifies whether to limit the number of files to find. 1 = Yes, 0 = No.

/MaxNumOfFiles <Value>
Specifies the maximum number of files to find.

/SearchMode <Value>
Specifies the search mode. 1 = Standard Search, 2 = Duplicate Search.

 

ENVIRONMENT

-

 

EXIT STATUS

0
no error.

4
usage message displayed.

5
program version printed.

6
program variant not known. This error occurs when the SearchMyFiles command is renamed.

 

FILES

etc/SearchMyFiles.cfg
configuration file of SearchMyFiles.

 

EXAMPLES

1) Command line examples
  SearchMyFiles.exe /scomma c:\temp\bfiles1.csv ^
    /FilesWildcard b*.*
    
  SearchMyFiles.exe /config c:\temp\myconfig.cfg ^
    /BaseFolder "c:\Program Files" ^
    /shtml c:\temp\result.html
    
  SearchMyFiles.exe /stab c:\temp\searchfiles.txt

 

SEE ALSO

wintoolsintro(1), config(1m), dpwiper(1), emptyfoldernuker(1), iyf(1), https://www.nirsoft.net/utils/search_my_files.html

 

NOTES

SearchMyFiles was developed by Nir Sofer <nirsofer@yahoo.com>. See (https://www.nirsoft.net/utils/search_my_files.html) for more information.

Big parts of this manual page are extracted from the web page: https://www.nirsoft.net/utils/search_my_files.html.

 

BUGS

-

 

AUTHOR

SearchMyFiles was developed by Nir Sofer <nirsofer@yahoo.com>. and integrated into WA2L/WinTools by Christian Walther. Send suggestions and bug reports regarding the integration to wa2l@users.sourceforge.net .

 

COPYRIGHT

Copyright © 2020 Christian Walther

This is free software; see WA2LWinTools/man/COPYING for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


 

Index

NAME
SYNOPSIS
AVAILABILITY
DESCRIPTION
Using SearchMyFiles
Search options
Duplicate Search Mode
Non-Duplicates Search Mode
Duplicate Names Search Mode
Summary Mode
Use SearchMyFiles thru 'SendTo' menu
OPTIONS
ENVIRONMENT
EXIT STATUS
FILES
EXAMPLES
SEE ALSO
NOTES
BUGS
AUTHOR
COPYRIGHT

This document was created by man2html using the manual pages.
Time: 16:32:57 GMT, September 14, 2024