Command: tree / pdtree

  TREE / PDTREE graphically displays the directory [folder] structure
  of a given drive or path. It optionally includes a filelist in 
  the display.

Syntax:

  TREE [d:][path] [/F] [/A] [/?]
  PDTREE [d:][path] [/F] [/A] [/V] [/S][/P] [/?]
       d:path  The drive and path to start from. If no path is given,
       tree/pdtree will start from the current directory.

Options:

   /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 find first/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).

Comments:

  TREE supports NLS (national language support).

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:
    pdtree 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 ASUBDIR /f | more 

See also:

  dir
  doslfn
  more
  pdtree

  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. Updated 2008 by W. Spiegl.