Output a list of filenames within a directory to a text file

Output a list of filenames to a text file using DOS

dir /b > dirlist.txt

The /b switch removes additional data such as dates

Leave a Reply