To create a list of files in the command prompt, use dir /b in the directory you want to list the files. You can save this in notepad as a .bat file to make a batch file. You can output this list of files to a text file by using the command: dir /b > C:\Temp\Myfile.txt