I'm late to this party, but still . . .
In the CMD window, try out the "tree" command
for help, type tree /?
This will output a tree-structured listing of a directory and its subdirectories.
tree /f gives the list of directories and their files
tree /a uses plain ASCII characters to make the "lines" for the branches
note: the appearance of the tree depends on your using a monospace font instead of a proportional-spaced font. Courier is the name of one monospace font.
To output to a file, use the redirect symbol, e.g.:
tree (path and directory name) /f /a > treelisting.txt
If your directory path or directory name has spaces in it, you should enclose the path and name in quotation marks