TREE.com – Windows CMD Command
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
Display the folder structure of a drive or path as a graphical tree.
1 2 3 4 5 6 7 8 9 |
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:
1 2 |
tree "C:\program files" |
Display a tree for the users home folder:
1 2 3 |
tree %homedrive%%homepath% |
or from PowerShell:
1 |
tree $home |
superb post