TREE+Displaying Directory Trees

Displays all the directory paths on a specified drive.

VERSION

PC-DOS 2.0+

MS-DOS equivalent: TREE (2.0+)

TYPE

External

SYNTAX

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

OPTIONS

[d:][path] Specifies the drive letter and path that

contain the TREE command.

[pd:] Specifies the drive whose directory

paths you want to display. If omitted,

the default drive is used.

/F Displays all the file names within each

subdirectory.

The TREE command is used to quickly view the structure of a

hierarchically organized disk.

EXAMPLES

TREE C:

lists the directories on drive A, each with its full path name

and its subdirectories shown in the following form:

DIRECTORY PATH LISTING FOR VOLUME 12

PATH: \REPORTS

SUB-DIRECTORIES: OCTOBER

NOVEMBER

PATH: \REPORTS\OCTOBER

SUB-DIRECTORIES: OCT5-10

OCT12-17

PATH: \REPORTS\NOVEMBER

SUB-DIRECTORIES: NOV9-14

NOV16-21

allows you to see the names of individual files in the

subdirectories, and it returns (in part)

TREE C:/F

PATH: \REPORTS\NOVEMBER\NOV9-14

SUB-DIRECTORIES: NONE

FILES: NOV10.TXT

NOV12.TXT

NOV13.TXT

------------------------------------------------------------------

[For related topics, press R]

SEE ALSO

APPEND Command

CHDIR Command

MKDIR Command

PATH Command

RMDIR Command



Questions: