Make a .txt-file and put this in it:
Code:
@Echo off
Dir /s > Index.txt
Save the file, then rename it to whatever you want.bat <---- Don't forget this. Change the .txt to .bat. The icon should change when you've done that. Running the file'll make a file called Index.txt with the listing of all files and folders, and all contents of the subfolders.