On a Windows PC, open Command Prompt and navigate to the folder whose text contents you want to list. Enter dir > listmyfolder.txt to redirect the command's output to a file.