A user wants to make sense of a very messy Windows shared drive, and asked for a way to print out all the directories together with their subdirectories.

Is there any way to do that?


I have never tried this but in theory can you not use command prompt (cmd) then change to the directory you require....run the following

tree > tree.txt

this would make you a file named tree.txt listing the tree of the directory it was run from

or another would be (replace Folder with the folder in question)

dir /d /s C:\Folder > C:\mydir.txt

This would make a file name mydir.txt in the root of C:\

hope that helps.

  • wow, good ol' tree still works! love that about microsoft Oct 6 '09 at 13:54

Have a look at Treesize Free. It'll show you the directory structure, and how much space each folder is using of the total disk size. Very handy tool for shared drive cleanups.

Treesize Free Screenshot
(source: jam-software.com)

  • That is nice little utility...thanks for posting link
    – Rodent43
    Oct 6 '09 at 13:41
  • Treesize has saved me many times! Oct 6 '09 at 13:44

Not an answer to the exact question but also useful for making sense of drives is https://windirstat.info/

windirstat example


Use the command:

dir /S /B /A:D

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy