Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought


 tree(CMD)                       19 June 1992                       tree(CMD)


 Name

    tree - display the directory structure of a path or of the disk in a
    drive

 Syntax


    tree [drive:][path] [/f] [/a]


 Parameters


    drive:
          Specifies the drive that contains the disk for which you want to
          display the directory structure.

    path  Specifies the directory for which you want to display the directory
          structure.


 Switches


    /f    Displays the names of the files in each directory.

    /a    Specifies that tree is to use text characters instead of graphic
          characters to show the lines linking subdirectories.  Use this
          switch with code pages that do not support graphic characters and
          to send output to printers that do not properly interpret the
          graphic characters.


 Note

    The structure that tree displays depends upon the parameters you specify
    on the command line.  If you do not specify a drive or path, tree dis-
    plays the tree structure beginning with the current directory of the
    current drive.

 Examples

    To display the names of all the subdirectories on the disk in your
    current drive, type the following command:

       tree \


    To display, one screen at a time, the files in all the directories on
    drive C, type the following command:

       tree c:\ /f | more


    To print the same list that the previous example displayed, type the fol-
    lowing command:

       tree c:\ /f > prn


 Related command

    For information about displaying the contents of a directory, see the
    dir(CMD) command.


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026