Create list of files in text format from command line
From ETCwiki
Jump to navigationJump to searchRecently I wanted to make a slideshow in IrfanView which required a text document that listed all files in a specific folder that I wanted to use for the slideshow.
The text file with file names had to have more than one folder in the list because the files were organized in separate folders. This will just create a text document with a list of files in a specific folder. It also lists all files in ANY folder inside the listed one.
Change to the directory you want to make a text file of:
cd\ cd my-image-folder (or whatever folder your images are in)
Command line command to list all of the files in the folder, and output that list to c:\file-list.txt
dir /S /B>c:\file-list.txt
Now access the file we created c:\file-list.txt