In Windows CMD, I use tree c: /f to get a tree of all directories resided in C:. But now I only want to tree out the only sub-directory folders (not files). How to I exclude files in tree command?

link|improve this question

feedback

1 Answer

up vote 5 down vote accepted

Leave out the "/F" switch, since it's what causes Files to be included.

From tree /?:

Graphically displays the folder structure of a drive or path.

TREE [drive:][path] [/F] [/A]

   /F   Display the names of the files in each folder.
   /A   Use ASCII instead of extended characters.
link|improve this answer
1  
beat me to it... – Lamar B Dec 29 '11 at 3:09
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.