FG
💻 Software

How to get tree of folders in CMD?

Fresh7 days ago
Mar 15, 202682822 views
Confidence Score0%
0%

Problem

In Windows CMD, I use 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?

Error Output

tree c: /f

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to get tree of folders in CMD?

Low Risk

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

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment