Articles

DOS file search at command prompt

March 3, 2009 at 05:30:10
Specs: Windows Vista

At a command prompt, how does one search for a file, find all of its locations with file size and date for each location?

If this cannot be done at the command prompt, is there a batch that will do the job?

Thanks for the help!


See More: DOS file search at command prompt

Report •


#1
March 3, 2009 at 06:33:33

FOR %a IN (a b c d e f g h i j k l m n o p q r s t u v w x y z) DO DIR /A-D /S %a:\file 2>NUL


Report •

#2
March 3, 2009 at 06:43:09

At prompt type

dir /S /P "Path\FileName"

If you want to save the results in a text file

dir /S "Path\FileName" > "Path\ResultFilename"


Report •

#3
March 3, 2009 at 08:15:29

Thanks for the replies. I'll try them all.

I believe something like IVOs second option is what I have used before.


Report •

Related Solutions


Ask Question