the easiest thing to do is the the commandline from here powertoy from microsoft. Then right click on the folder you want to print the contents of and select commandline from here.
Then type
dir > output.txt
your files will be listed in output.txt in that folder.