If you want a simple list of files in a directory enter this code:
dir /s /w >files.txt
. .. . in a batch file (a regular text file, but switch then the extension to bat and then click it.) The /w option sets the results to the wide format. The file names are listed after each folder.