go to the root directory to start from in command prompt and insert below... /-p /o:gn > "%dirpath%\DirContents.txt"