Microsoft DOS tree command

Quick links

About tree
Availability
Syntax
Examples

About tree

Allows the user to view a listing of files and folders in an easy to read listing.

Availability

The tree.com is an external command that is available in the below Microsoft operating systems.

All Versions of MS-DOS
Windows 2000
Windows XP
Windows Vista
Windows 7

Syntax

TREE Drive:\ Path /f /a

Drive:\PathDrive and directory containing disk for display of directory structure.
/fDisplays file names in each directory.
/aext 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.

Examples

tree

List a tree listing of the current drive. Below is a basic example of what a directory may look like.

C:.
├───Common
├───Director
├───Flash
├───Shockwave 8
│ ├───DswMedia
│ ├───Prefs
│ └───Xtras
└───update