When you are looking at the files on your computer, have you ever wanted to print a listing of the files in a specific folder? Perhaps you want a listing of all of your documents? Or maybe you want a list of all of your photos so you can organize them.
Although this feature is not enabled in Windows by default, there is a feature that does this. To add this feature, all you have to do is go to the link below and click on the Microsoft Fix it button to add this feature. Once you have done this, you can then right-click on a folder and choose “Print Directory Listing”
And that’s all there is to it. This feature is somewhat limited. You don’t get to choose what format it prints in. It will print to your default printer and does not give you the option to print to a different printer.
On a related note, what if instead of printing a directory listing, you wanted that listing to be in a file that you could edit? This is a little more complicated to do. First you would need to open a command window by clicking on start (If you are running XP, click run), then type cmd and hit enter.
Once you have a command prompt, you will need to use the CD (change directory) command to change to the folder you want to do a listing of. By default, the command prompt will be in your user directory. Let’s say you wanted to save a list of what is in your documents folder. To do that you would use the following command to change to your documents folder:
If you are using Vista or Windows 7: CD documents
If you are using XP: CD My Documents
Now that you are in your documents folder, there is a command you can use to save a directory listing to a text file. But first you need to decide on the name of the text file. In this example I will use filelist.txt for the file name. So the command I do is: dir > filelist.txt
This command will do a directory listing on the current folder and send the output to a file called filelist.txt. You can then edit this file using notepad, wordpad, Word, Excel, or whatever. You can even print this file.
Your documents folder may have sub-folders. The above command will only list what is in the current folder and will not list all of the files in the sub-folders. You can do that, however by adding /S to the dir command. The resulting command looks like this: dir /s > filelist.txt
Be careful with /s though. If you have lots of files in lots of sub-folders, the list could be quite long. By the way, there are other options for the dir command you may want to check out. To see them in the command prompt, type: help dir