Create XLS or CSV from file names in folder on Windows?

You can use PowerShell to create an actual CSV file:

dir | Export-Csv MyFileList.csv


One very quick and dirty way is the command prompt. Simply open one, navigate to your folder and funnel the result into a text file using this command:

dir > filenames.txt

You will have to do some cleaning up, but as I said "quick and dirty". :-) If you only want certain objects you can of course limit the output of your 'dir' command.

The option Cybertox mentioned might be a good idea:

/B Uses bare format (no heading information or summary).


This used to work on older Windows versions and gave the full path of all files:

dir /s /b > list.txt