| layout | sheet |
|---|---|
| title | TREE |
| permalink | /docs/bdman/cmd/external/tree/ |
{% include header.html %}
TREE [drive:][path] [/F] [/A]
Displays the directories below path (or the current directory), each one connected to its parent by line-drawing characters.
/Auses ASCII characters instead (eg, for a printer)/Flists each directory's files, too, before its subdirectories
If there are no subdirectories, TREE displays No subdirectories exist.
TREE C:\ /A
Directory PATH listing for Volume BD-10MB
C:\
+---EXT
+---DEMOS
| \---WOLF3D
+---SRC
| +---BOOT
| | \---OBJ
| +---CMD
| | \---OBJ
...
If a tree is too wide or too deep for TREE to follow, it lists what it can, then displays Too many subdirectories, and ERRORLEVEL is set to 1. A drive that doesn't exist displays Invalid drive, and an unknown switch, or a second path, displays Syntax error.
Source: TREE.BAS
{% include footer.html prev="TR:../tr/" next="UNIQ:../uniq/" %}