Find.Files
Top  Previous  Next


Find.Files finds files and directories and calculates directory sizes on all local hard drives on NT, 2000, XP and 2003 machines across your entire network.

The command syntax for this command is quite complicated, it is therefore recommended to use the File finder GUI window to get started, simply click the "File finder" button, fill-out the fields and then click the "Make [Aux]" button to create or replace a "Find files" command in the Auxiliary section.

Notice

·The default NT administrative shares (c$, d$ etc.) are used to access drives on remote machines. These shares are enabled by default, but they can be disabled, and if so, Find.Files will not be able to search such drives.  
·The details for each file (one clear text record) occupies 200-500 bytes (depending on name and path length) of memory. Maximum number of returned records is 50000 which would use between 10 and 25 Megabyte of RAM memory. Naturally, this amount of data will take a while to handle even for the fastest computer. Hence you should make your search as specific as possible in order to limit number of results.  

Find.Files
StartPath, SearchType, FileType, FileName, Size, DateTime, Recursive, ItemsMax, DirMax, LevelMax, ShowRoot, RowSublabel

StartPath
Full disk path to directory to search.  
UNC paths are not allowed, use the local path even on remote machines.  
 
Enter an asterisk character ("*") for all drives. With this option NTinfo automatically enumerates and searches the local drives on each machine.  
 
Use path variables to search standard Windows locations with different file paths depending on where the OS was installed, language version, current user etc.  
 
Path variables. Variables beginning with "u_" depends on current user of target machine.  
Variable
Description
%AllUserProfile%
"All users" profile directory, example: C:\Documents and Settings\All Users
%Fonts%
Font directory, example: C:\WINNT\Fonts
%ProfileRoot%
User profile root directory, example: C:\Documents and Settings
%ProgramFiles%
Program directory, example: C:\Program Files
%SystemRoot%
System directory, example: C:\WINNT
%u_Cookies%
IE Cookies directory, example: C:\Documents and Settings\Administrator\Cookies
%u_Desktop%
Desktop directory, example: C:\Documents and Settings\Administrator\Desktop
%u_Favorites%
IE Favorites directory, example: C:\Documents and Settings\Administrator\Favorites
%u_History%
IE History directory, example: C:\Documents and Settings\Administrator\Local Settings\History
%u_Personal%
Personal directory, example: C:\Documents and Settings\Administrator\My Documents
%u_Programs%
Start menu program directory, example: C:\Documents and Settings\Administrator\Start Menu\Programs
%u_Recent%
Recent files shortcut directory, example: C:\Documents and Settings\Administrator\Recent
%u_StartMenu%
Start menu directory, example: C:\Documents and Settings\Administrator\Start Menu
%u_Startup%
Auto start directory, example: C:\Documents and Settings\Administrator\Start Menu\Programs\Startup
%u_UserProfile%
User profile, example: C:\Documents and Settings\Administrator
 
 
Examples  
Specify
...to search...
c:\
"c:\" on all specified machines
c:\program files
"c:\program files" on all specified machines
d:\
"d:\" on all specified machines
*
all drives on all specified machines
%Desktop%
desktop of current user on all specified machines
 

SearchType
Type of entries to search for  
Options: File | Dir | FileDir  
·File - search for files  
·Dir - search for directories  
·FileDir - search for files and directories  

FileType
One or many file types to search for, each type must end with "§".  
Leave the FileType parameter empty for all extensions.  
It is possible to use wildcards.  
 
Examples  
Specify
...to search for...
.txt$
text files
.exe§.bat§
executables and batch files
a*§
files with extension beginning with "a"
 
.
FileName
One or many file or directory names to search for, each name must end with "§".  
Leave the FileName parameter empty for all names.  
It is possible to use wildcards.  
 
Examples  
Specify
...to search for...
*data*§
files with the word "data" in the file name
data*§
files with file name beginning with "data"
pdm.dll§
the exact file name "pdm.dll"
 

Size
File or directory size in bytes.  
Leave the Size parameter empty for all sizes.  
Syntax: [-]Size[-][Size]  
·A minus character in front of the size number returns all items with a size of at most specified size.  
·A minus character after the size number returns all items with a size of at least specified size.  
·A minus character between two numbers makes it a range search.  

Examples  
Specify
...to search for items with size...
405
405 bytes
-405
405 bytes and smaller
405-
405 bytes and bigger
405-1024
between 405 bytes and 1024 bytes (1 KB)
 

DateTime
File or directory date and time.  
Leave the DateTime parameter empty for all dates and times.  
Syntax: DateAttribute[-]YYYY-MM-DD[HH:MM][-][YYYY-MM-DD][HH:MM]  
·The time part is not mandatory, leave empty to return results from the whole day.  
·A minus character in front of the date returns all items with date equal to specified date and time or earlier.  
·A minus character after the date returns all items with date equal to specified date or later.  
·A minus character between two values makes it a range.  
 
DateAttribute options: A | C | M  
·A - search last access time attribute  
·C - search creation time attribute  
·M - search last write time attribute (modified)  

Examples  
Specify
...to search for items...
A:2003-10-19
accessed between 2003-10-19 00:00:00 and 2003-10-19 23:59:59
A:2003-10-19 13:11
accessed between 2003-10-19 13:11:00 and 2003-10-19 13:11:59
C:-2003-10-19
created between the beginning of times and 2003-10-19 23:59:59
M:2003-10-19-
modified between 2003-10-19 00:00:00 and the end of times
A:2003-10-19-2003-10-20
accessed between 2003-10-19 00:00:00 and 2003-10-20 23:59:59
 

Recursive
Options: Recursive |  
·Recursive - search subdirectories  
·Nothing - blank parameter - do not search subdirectories  

ItemsMax
Maximum number of files or directories listed for each drive.  
Leave parameter empty for the maximum of 50000 items.  
The ItemsMax parameter is useful to limit number of returned records per drive when doing wildcard searches throughout many machines.  

DirMax
Maximum number of files listed for each directory.  
Set DirMax to 0 (zero) or leave parameter empty for all files.  
The DirMax parameter is useful to limit number of returned records when searching for certain file types throughout many directories. Example: Most network administrators does not permit users storing media files (.mp3, .wma, .mpg etc.) files in their home directories. Set a DirMax limit to find out who stores these files without having to see more than one or a few records per user.  

LevelMax
Maximum directory level from which to display results.  
Set LevelMax to 0 (zero) or leave parameter empty for all items.  
The LevelMax parameter is useful when calculating directory sizes where usually only the first level should be displayed.  

ShowRoot
Options: ShowRoot |  
·ShowRoot - show root directory (StartPath) - use this to see size etc. of root directory  
·Nothing - blank parameter - do not show root directory  

RowSublabel
Label to write in second column in NTinfo output window. Default is "FIND".  

Find.Files output format

One record per row, one property per column, see
Find files record format.

Examples
Search "C:\program files" and all subdirectories for "excel.exe" and "winword.exe"

Find.Files C:\Program Files;File;;excel.exe§winword.exe§;;;Recursive;;;;;

Search "C:\Documents and Settings\Administrator\Cookies" for all cookies modified November 07, 2003

Find.Files C:\Documents and Settings\Administrator\Cookies;File;;;;M2003-11-07;;;;;;

Search all drives and all subdirectories for files with a size of at least 10 Megabytes, limit number of results to 1000 per drive

Find.Files *;File;;;10485760-;;Recursive;1000;;;;