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

      TREE [drive:][path] [/F] [/A]
   [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


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


DIR - Display a list of files and folders
VOL - Display a disk label

Copyright © 1999-2018
Some rights reserved