The screen displays a report for every directory on the drive, for example:

Path: C:\LEDGERSub-directories:RECEIVPAYABL

SALES

If you would also like to see a list of all the files in the directories, add the /F switch to the command:

TREE /F

The screen displays the directory information shown above plus the names of all files in each subdirectory, for example:

Path: C:LEDGER\SALESSub-directories:NoneFiles : DECSALESFORECAST . 90OCTSALESNOVSALES

To see the list of directories on another drive, include the drive designator:

TREE A:Removing Directories

You may sometimes want to remove directories you no longer need.

A directory must be empty, however, before you can delete it. If it contains any files or subdirectories, MS-DOS displays an error message and does not delete the directory. (Use the DEL command to delete the files in a directory.)

3-24Using MS-DOS With Your Computer