Create a text file listing of the files

The output can be sent to a text file by using the redirection symbol “>” (no quotes).

  • Open the command line at the folder of interest.
  • Enter “dir > listmyfolder.txt” (without quotes) to list the files and folders contained in the folder.
  • If you want to list the files in all the subfolders as well as the main folder, enter “dir /s >listmyfolder.txt” (without quotes)

Source: Use the Command Line to Easily Create a List of Your Personal Files- Your Music, Your Pictures or Whatever | Gizmo’s Freeware