TREE.com – Windows CMD Command

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

You may also like...

1 Response

  1. Abe Gascot says:

    superb post

Leave a Reply to Abe Gascot Cancel reply

Your email address will not be published. Required fields are marked *