RSS

Print directory tree to file in Windows XP

This entry was posted on Dec 30 2006

I have been trying to figure this out for a very long time. I know I was able to do it once but I couldn’t figure out how to do it again so I am posting it here for myself and the rest of the world to know.
Open up a command line and type “tree c:\” This will display a tree of all the files on your c drive (way better than dir if you ask me). If it is taking a while just push Ctrl+C to make it stop. Now type “tree c:\ > c:\tree.txt” That will save the whole directory listing to the tree.txt file. I am very excited I finally got this to work.
If anyone else has some nice command line tools that they have been wanting for a while post them in the comments.

Post a Comment