1) cd to the directory that contains the files you want listed.
2) dir /b > ..\list.txt
(/b is "bare" format, no directory command header or trailer information. Plus, you use "..\list.txt" for the destination because otherwise the list.txt file itself will show up in the list.)
3) print the list.txt file