Link to home
Start Free TrialLog in
Avatar of Europa MacDonald
Europa MacDonaldFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Searching through a windows drive, looking for specific files

Is it possible to search through windows drive using DOS or best method

I am looking for .avi, .jpg and hidden files ?

drive is corrupt and I think in some cases holding inaccurate volume size
Avatar of flubbster
flubbster
Flag of United States of America image

Sure, you can use the Dir command

For example:

dir *.jpg     will list all jpg file
dir *.jpg /s   will list all jpg files in the current folder and all subfolders
dir *.exe /w    will list all exe files in a wide format (files will be listed across the screen. It fits more files per page.

Here is a good reference for various switchwes for the dir command:
http://www.computerhope.com/dirhlp.htm
Avatar of Europa MacDonald

ASKER

would that search every folder on the drive or just the root ?
ASKER CERTIFIED SOLUTION
Avatar of flubbster
flubbster
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Dr. Klahn
Dr. Klahn

If the drive is corrupt, then perhaps a drive recovery tool would be a better choice.  Most of them allow selection for specific file extensions, and also for file recovery by examined type -- i.e., the program examines the contents of the file to see what it actually is.  Personally I use R-Studio, but there are many equally good programs out there.