Create a text file from files in a folder windows

using the command prompt

browse to the directory where the files are located.

enter the command below

Dir /b > Myfileslist.txt