TREE (Display Directory)

The description below is from the book
DOS the Easy Way by Everett Murdock Ph.D.

CLICK HERE for information about downloading the book.

Type: External (2.0 and later)

Syntax:

TREE [d:][path] [/A][/F]

Purpose: Displays directory paths and (optionally) files in each subdirectory.

Discussion

When you use the TREE command each directory name is displayed along with the names of any subdirectories within it. The display will be in a format like the summary below. (Different versions of DOS may display the data in a slightly different format.)

First, the root directory and the directories within it are listed (directory names listed in a five column display):

DIRECTORY PATH LISTING FOR VOLUME (volume name)

Path is C:

Then each directory within the root is listed:

Path is: C:\(directory name)



Options

/A - Specifies that alternative characters (plus signs, hyphens, and vertical bars) be used to draw the tree diagram so that it can be printed by printers that don`t support the line-drawing and box-drawing characters (DOS Versions 4 and 5).

/F - Displays the names of the files found within each directory listed.


For more information on using the TREE command and other fixed-disk commands, refer to Chapter 3, Using Fixed Disks.

Example

To list the directories on the disk in drive A, enter

tree a:




Back to the Easy DOS Command Index