Print/Edit contents of a Directory/Folder

on Friday, August 13, 2010

This is purely based on DOS commands.  What happens if you have a CD or folder containing files which are not arranged?  What if they are very large in number?  This simple DOS command will generate the contents of any Directory/Folder and store it in a text document so that you can later view it or edit it.  This is how we do it.

Go to Run and type "cmd" (without quotes) to get the Command prompt.

Go to the Drive/Directory/Folder of whose contents you wish to extract in a txt file.

After having got to the destination, type the following exactly as it is


You can put the name of the txt file as you wish.  You can choose the destination where it is to be stored too.  In this case, I opted for C: drive and the name of the txt file is FolderContents.

Browse to the directory, you can see the txt file with all the details.

Subscribe via RSS