How can I print a folder directory to a text file?

There used to be a program called Dir2Text, which you could just point it to a folder or a whole disk, and it would traverse the directory and print it to a textfile, with subfolders indented and everything. Now I need it and can't find it. Anyone know where to find it? Or is there something better these days? TIA

_Object2015-05-23T23:33:57Z

Favorite Answer

The program is classically called `tree':

On a Unix system, at a shell prompt, run
tree -o myfile
http://linux.die.net/man/1/tree

On Windows, at a shell prompt, run
tree > %USERPROFILE%\tree.txt
http://jpsoft.com/help/tree.htm

delisi2016-12-18T00:19:20Z

Print Directory To Text File

franklin2015-06-27T07:12:04Z

hey is there anyway I can contact you. I'm helping my son with some chemistry work and you seem to know a lot