Computing.Net > Forums > Programming > DOS file search at command prompt

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

DOS file search at command prompt

Reply to Message Icon

Name: canard blanc
Date: March 3, 2009 at 05:30:10 Pacific
OS: Windows Vista
Subcategory: Batch
Comment:

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!



Sponsored Link
Ads by Google

Response Number 1
Name: Razor2.3
Date: March 3, 2009 at 06:33:33 Pacific
Reply:

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


0

Response Number 2
Name: IVO
Date: March 3, 2009 at 06:43:09 Pacific
Reply:

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"


0

Response Number 3
Name: canard blanc
Date: March 3, 2009 at 08:15:29 Pacific
Reply:

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

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


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


unix shel how add environment varia...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: DOS file search at command prompt

command prompt text write to file www.computing.net/answers/programming/command-prompt-text-write-to-file/13180.html

Unix commands in Command prompt? www.computing.net/answers/programming/unix-commands-in-command-prompt/15282.html

Batch file www.computing.net/answers/programming/batch-file/18593.html