|
TREE
Displays a graphic direcotry map.
Creates a graphic map of directories and sub directories.
Syntax
tree [Drive:][Path] [/f] [/a]
Parameters
Drive : : Specifies the drive that contains the disk for
which you want to display the directory
structure.
Path : Specifies the directory for which you want to
display the directory structure.
/f : Displays the names of the files in each directory.
/a : Specifies that tree is to use text characters instead
of graphic characters to show the lines linking
subdirectories.
For example, use a folder like C:\WINDOWS\TEMP or
C:\WINNT\TEMP so you wont be overwhelmed while testing it.
TREE/F will show file names in addition to directories.
To send the output to text file: TREE/A>mymap.txt. The /A
will use simple formatting that will read better in the
output file.
Examples
To display, one screen at a time, the files in all the
directories on drive C, type:
TREE c:\ /f | more
To print the same list that the previous example displayed,
type:
TREE c:\ /f prn
Batch File Commands
|