Search for files

  • Thread starter Thread starter Armando
  • Start date Start date
A

Armando

Is there a way to search for files with a specific
extension in a certain directory and all subdirectories
and output the results to a txt file? I am able do a
windows search in explorer for *.extension but the
results are not able to be copied out of the explorer
window.
 
[Start]
Run
Type cmd.exe
Press [Enter]
Type dir/?
Press [Enter]

To send output to a file, addto the end of the dir command that you use.

Examples:
dir c:\ >> outputfile.txt
dir c:\foldername >> outputfile.txt
dir /b c:\ >> outputfile.txt
dir /b /s c:\ >> outputfile.txt
dir /d c:\ >> outputfile.txt
dir /l c:\ >> outputfile.txt
dir /w c:\ >> outputfile.txt
dir /x c:\ >> outputfile.txt


Austin M. Horst
 
Yes - (from us old timers) go to a DOS window and enter

dir /s *.extention > search_results.txt

the /s will search the current and all subs below it.

Ed
 
Back
Top