can't you simply use the MS-DOS comand: tree
type:

tree /a >tree.txt

when you're on the C:\ in MSDOS prompt, then (using windows) open C:\tree.txt