TREE CMD (Directory Tree)
Display the folder structure of a drive or path as a tree. Syntax: tree [path] [/f]
Step-by-step
- Open Command Prompt (press Win+R, type cmd, and press Enter)
- Syntax: tree [path] [/f]
- Brief: Display the folder structure of a drive or path as a tree.
- Example: tree C:\Docs /f
- Tip: /f includes filenames, not just folders.
Reference: learn.microsoft.com