Visualize Folder Structure With Ye Olde DOS Tree Command

A couple of weeks ago, I found myself looking for a way to quickly demonstrate and visualize the folder structure of a QA system. Using the ancient DOS command “tree”, I was able to make it happen easily. The DOS tree command gives you an “ASCII art” representation of a folder hierarchy from the command prompt. You can either copy/paste the results from the command prompt window, or you could redirect the output to a text file for reuse in a Word document. Here’s an example command line execution of the DOS tree command redirecting output to a file:

tree c:\temp > dos_tree_output.txt


Hope this helps!

This entry was posted in Batch Files. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *