This tip was printed from the MalekTips Computer and Technology Help and Tips website at http://malektips.com.
SUMMARY: Quicky scan your hard drive for all files with a given extension, such as batch files, text files, or executables.
Ever need to find all of your batch files on your hard drive? Or, need to find all of your text files? What about images? This quick batch file will let you type in the following command at the DOS prompt:
FINDALL BAT
And it will display all of your batch files in the current directory and subdirectories. Type:
FINDALL TXT
And it will display all of your text files in the current directory and subdirectories.
Just create a batch file called FINDALL.BAT, consisting of just this line:
@dir /b /s *.%1 | more
Place this file in your Windows directory, or if you are not using Windows, a directory inside your configurable PATH.
Want to sort the results? Make FINDALL.BAT consist of this line:
@dir /b /s *.%1 | sort | more
Press the "print" button on your browser or select "File" - "Print" to print this tip. Then, return to DOS and Batch Files - Find All Files Of A Given Type
Standard disclaimer applies - read http://malektips.com/disclaim.html