dir /b/s *.txt
Searches for all text files in the directory tree. Before use, just change the directory to root with
cd/
You can also export the list to a text file using
dir /b/s *.exe >> filelist.txt
and search using
type filelist.txt | find /n "filename"
EDIT 1: Although this dir command has been working since the old days, but Win7 added something new called Where
where /rc:\Windows *.exe *.dll
will look for exe & dll on the c: \ Windows drive , as suggested by @SPottuit, you can also copy the output to the clipboard using
where /rc:\Windows *.exe |clip
just wait for the invitation and do not copy anything until then.
EDIT 2: If you are looking for a recursive search, and the result is large, you can always use more to enable swapping, it will show -- More -- at the bottom and will go to the next page when you press SPACE or move line by line by pressing ENTER
where /rc:\Windows *.exe |more
For more help, try
where/?
Vinod Srivastav Sep 08 '14 at 4:33 2014-09-08 04:33
source share