Here are a few quick tips you can do from the command prompt in Windows XP (this will actually work in all versions of Windows since 3.1):
Getting a listing of every single frickin’ thing on your hard drive in a single text file
Command:
DIR /S C:\*.* > C:\all.txt
This will write a text file of every single file on your system (excluding hidden files) to the file all.txt in the root of C drive. It will take a while and the text file will be humongous. When I did this my end result text file was 9MB in size. For a text file, that’s huge.
If you try to open this file afterwards in Notepad, it will crash because Notepad can’t handle something this big. However, if you get a better text editor like Notepad++, you can open big honkin’ text files.
Reason why would you would want to to this: There is no easier way to get a complete listing of all files in Windows in a portable file. If you’re troubleshooting your computer and want to see where specific stuff is without clicking all over the place, this is the way to do it. And it’s unbelievably faster than listing files using the standard Windows search.
Getting a listing of a specific type of file using the same method
Command:
DIR /S C:\*.DOC > C:\alldocs.txt
This will write a text file called alldocs.txt to the root of C drive containing a listing of every single file on your system ending with DOC (i.e. Word documents).
Since this listing will be much smaller it can be opened in Notepad easily. Launch Notepad and open the file C:\alldocs.txt and you’re off to the races.
You can do this with any file extension. If you want to find all XLS (Excel) files, change *.DOC to *.XLS. If you want to find all JPG files, change *.DOC to *.JPG – you get the idea.
Common file extensions in Windows
- Plain Text: TXT
- Word: DOC
- Excel: XLS
- Video: AVI, WMV, MPG, MPEG, QT, MOV
- Audio: WMA, MP3
- Image: JPG, JPEG, GIF, PNG
- Archive: ZIP, RAR
- Executable file/installer: EXE, MSI

Thank you!!! Call me stupid, but I have been looking for a “program” to find every .mp3/.wav/ .wma etc file on my PC so I can look for duplicates. I need to learn more about the command prompt
you SAVED me. I’ve been looking around for YEARS, a simple way to “backup” all of my photos
This makes it easy to find every directory I have dumped a photo in since I got my computer
I actually “learned” of this command months back, but lost the reference, and a simple search dir command to find jpg brought me here