How to Create a List of All Files in a Folder in 3 Seconds!

When migrating my clients from one form of data storage to another I take the opportunity to do a quick audit on their files and see if there is anything that we can leave out. To do this it is handy to create a list of all the files in a directory.

To perform a quick and easy data dump of all files in a folder all you need to do is:

  • Go to the start menu
  • In the search bar type in ‘cmd’
  • Open the command prompt
  • Enter the following code:

C:\>dir /s /b>filelist.txt

Where dir is the directory that you would like to copy and filelist.txt is the name of the file you would like to output to. Upon executing this command a new file will appear in the directory that you are copying from titled ‘filelist’ or whichever name you want the file to have!

Example:

To copy the list of files and subfolders out of the Adobe Acrobat folder in program files you would enter:

C:\Program Files\Adobe\Acrobat 9.0 /s /b>adobefilelist.csv

 

Notice the CSV extension? Yes you can also export directly to excel doing this.

About The Author

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top