To make a batch file that lists files in a folder.
Use the notepad and type this string:
command.com /c tree /F /A > c:\Listing.txt
Then rename the extension BAT.
Double click the icon to capture the list of whateaver directory you happen to be in .
That's all.