A very convenient DOS command for listing directories in a tree format. Ported to UNIX and other operating systems, and available under the various flavors of Windows. Very convenient for making data CD paper maps.

The command has two options

  • /A - Specifies that alternative characters (plus signs, hyphens, and vertical bars) be used to draw the tree diagram. Very convenient for taking tree displays out of the DOS planet.
  • /F - Displays the names of the files found within each directory listed.
syntax is tree an optional path indication /a /f : if you omit the path indication, tree will start from the current directory.

Example: the tree /a /f listing of a VCD


Volume serial number is 0006FE80 FDE3:3A23
D:.
+---CDI
|       CDI_IMAG.RTF
|       CDI_TEXT.FNT
|       CDI_VCD.APP
|       CDI_VCD.CFG
|
+---EXT
|       LOT_X.VCD
|       PSD_X.VCD
|       SCANDATA.DAT
|
+---MPEGAV
|       AVSEQ01.DAT
|
+---SEGMENT
\---VCD
        ENTRIES.VCD
        INFO.VCD
        LOT.VCD
        PSD.VCD