Fastest way to create a file list

Dir helpThe fastest way on Windows to create a file with a list of all files in a directory and its subdirectories  is pretty simple. This should work on most windows desktops. Open the Command Prompt ( Start button -> cmd ) and run the following command.
The /S switch searches all subdirectories.
The /B switch ommits all header and other stuff.
The > forwards all output to the specified filelist.txt file.

 

dir /B /S > filelist.txt

* For other switches check the output of

dir /?

Tested on a structure composed of 1,5M files. Works flawlessly.


Posted

in

, , ,

by

Comments

Leave a Reply

%d bloggers like this: