Outputs all of the files in a folder to a text file using Windows Command Line.
copydir "C:\My Files\" > filenames.txt /b /o
dir "C:\My Files\" > filenames.txt /b /o