Windows: list directory files to a new file
C:>dir /L /O:n /B > listoffiles.txt
/L uses lowercase
/B skips heading information
/O sets order
/O:n sets order to alphabetical
> redirects output
listoffiles.txt - file to be created
For more options see C:>help dir