Output All Folder Filenames to a Text File in Windows

1/4/2016 4:56:20 PM

Outputs all of the files in a folder to a text file using Windows Command Line.

dir "C:\My Files\" > filenames.txt /b /o