TREE.com

Display the folder structure of a drive or path as a graphical tree.

Syntax
      TREE [drive:][path] [/F] [/A]
Key
   [drive:][path]  The startng directory for the tree listing.

   /F   Display the names of the files in each folder.

   /A   Use ASCII instead of extended characters.

Like the DIR command, the first two lines of output from Tree are the Volume Label and Serial Number, in Windows 10 the Serial number is prefixed with the Device ID.

The output can be redirected to a file with > c:\filename.txt

Examples

Display a tree for the "C:\Program Files" folder:

tree "C:\program files"

Display a tree for the users home folder:

tree %homedrive%%homepath%

or from PowerShell:
tree $home

“The significance of the cherry blossom tree in Japanese culture goes back hundreds of years. In their country, the cherry blossom represents the fragility and the beauty of life. It's a reminder that life is almost overwhelmingly beautiful but that it is also tragically short” ~Homaro Cantu

Related commands

DIR - Display a list of files and folders.
DIRUSE - Show size of multiple subfolders. (Resource Kit)
VOL - Display a disk label.


 
Copyright © 1999-2024 SS64.com
Some rights reserved