Tree

Graphically displays the directory [folder] structure of a given drive or path. Optionally includes filelist in display.

Usage:

 Syntax: TREE [d:][path] [/F] [/A]
   d:path
       The drive and path to start from.  If no path is given, start
       from the current directory.
   /F  Display the names of files in each directory.
   /A  Use ASCII characters to visually represent the directory
       structure.

   /?  Display help and exit.

 Additional Options in FreeDOS pdTree: (Not available in standard Tree.)
   /V  Display version information and exit.
   /S  Shortnames only (uses short, ie alternate, filename when exists).
       DOS version only, disables use of LFN API for findfirst/next.
   /P  Pause after each page.  (Note: presently defaults to 80x25 screen)
       Win32 version only, ignores pause option if output is redirected
       to file or piped to another program, such as tree | more;
       also attempts to use current console size (TODO for DOS version).


Examples:

To display the complete directory hierarchy of drive C and pause
after each screenful, run tree specifying C: as the start path and
pipe its output to the more command:

tree C:\ | more

When using pdTree, the above example may also be achieved using:

tree C:\ /p

To display the directory hierarchy of a subdirectory and have the
output only use standard ASCII characters (such as for printing or
sending to someone who may view it without DOS line/box drawing character
support), specify the subdirectory and the /A switch:

tree ASUBDIR /a

To display the structure of a directory tree and the files within
each directory, add the /F switch:

tree /f | more


Copyright: This document is public domain, only public domain additions will be accepted.
Thus this document may be freely copied, etc. but no warranty, claim of correctness, nor fitness for any purpose is given.
KJD 2003,2004