Create a file from a directory list

To create a text file listing the contents of the directory, navigate to the desired folder in a command prompt and type:

dir /on /b /s >list.txt

The /on orders the lists by alphabetical name, the /b makes it only list the filename, and the /s includes subdirectories files in the list.

(Courtesy 0f http://liveslick.com/2007/10/18/make-a-directory-list-with-the-command-prompt-in-seconds/)

 

CategoriesUncategorized

Leave a Reply

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