Microsoft DOS tree command
Allows the user to view a listing of files and folders in an easy to read listing.
The tree command is an external command that is available in the below Microsoft operating systems as tree.com.
TREE [Drive:[[Path] [/F] [/A]
|Drive:\Path||Drive and directory containing disk for display of directory structure.|
|/F||Displays file names in each directory.|
|/A||ext characters used for linking lines, instead of graphic characters. /a is used with code pages that do not support graphic characters and to send output to printers that do not properly interpret graphic characters.|
The tree command typed alone will produce a tree listing and overview of the current directory.
The picture to the right is an example of a tree overview when using the tree command by itself.
The above command uses the tree command with the /F switch. The resulting tree output would include the names of files located in each of the directories in the tree. Depending how many files are located in each directory, the tree listing could be quite long.
- See our tree structure definition if you need further information understand the structure of a tree.
Tip: To output the structure of a directory to a file, along with other options, try using the dir command.