TREE+Displaying Directory TreesDisplays 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:
Hi, don't know if I am permitted to ask questions like this not being a member but certainly hope so. I would like to tailor the tree command to only list a specific type of file. I have tried several permutation but none seem to work (e.g. tree /F *.shp; tree /*.shp - is it possible to do this?+
file: /Techref/DOS/command/tree.htm, 2KB, , updated: 2003/11/11 15:09, local time: 2024/11/26 22:39,
3.145.75.238:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://massmind.org/techref/DOS/command/tree.htm"> DOS command tree</A> |
Did you find what you needed? |
Welcome to massmind.org! |
Welcome to massmind.org! |
.