November 0910

List folder contents to a file

Have you ever wanted to get a list of the files in a folder? You have? That’s good because this short post will show you how to do just that!

By way of example, to get a list of the files/folders for this website I first opened a DOS prompt, navigated to the root folder and then

dir > FolderContents.txt

This creates a text file called FolderContents with a list of all the files/folders in that location, if you wanted to do something more useful with the information you could change the file extension to csv and then use Excel to analyse the contents.

dos-folderlist

Add comment

(Will show your Gravatar icon)
  Country flag
biuquote
  • Comment
  • Preview
Loading