Directory/File list in Windows
For a pretty tree, do
tree /f /a > tree.txt
For an ugly (but thorough) inline list of directories and files, sorted by directory name and then date of creation, do
dir /s /a /o:-d /t:c > file_list.txt
If you don't want subdirectories listed under directories, do
dir /s /a:-d /o:-d /t:c > file_list.txt