1 CD
! CD.HLP Created by J.M.Kelsey 13-Feb-1980
 CD is a set of command procedures designed to make it easy to move about
 in a VMS Directory Hierarchy.  The command checks to see if each directory
 in the path exists and is readable, which is more than SET DEFAULT does
 for you!  Also, the concept of a "home" directory and "parent" directory
 is implemented.

 If a directory in the given path does not exist, and error message is
 displayed and the command does not modify the default directory string.
 However, if the '..xyz' syntax is used and the subdirectory xyz does
 not exist, the default directory string is modified to be your parent
 directory, if such a directory exists.  Note also that the only way to
 get to the root directory is change to the directory 000000.

 Format
    CD [pathname]
2 Parameters
 The optional pathname parameter specifies which directory you wish to
 have your default directory string set to.  The format of the directory
 is a series of directory names, seperated by periods, and not including
 any brackets ([] or <>).  If the pathname is not specified, the global
 symbol $HOME is used.  This symbol must be a complete directory name,
 including device if you want.  This symbol is set on login to be your
 default directory, and can be changed if you want.

 If the first character of the pathname is a period ("."), this signals
 that you wish to move up or down in the directory hierarchy from your
 present "position".  A single period starting a path name will move
 "down" to a subdirectory of your current default directory.  A pathname
 consting of only two periods (".."), will move "up" to the "parent" of
 your current default directory.  Also, a pathname which starts with
 two periods ("..xyz") will move up to the parent of your current
 directory, then move down from there.

 The pathname can be preceded by an optional logical name, seperated from
 the pathname by a colon (:). This can actually be a disk name or a logical
 name.  For example, if the logical name u is defined as DBA0:[USRLIB],
 then the command
    CD U:.SYS
 will set your default directory to DBA0:[USRLIB.SYS], if a subdirectory
 SYS exists in [USRLIB].  Also,
    CD DBA1:JOE
 will set your default to DBA1:[JOE], if the disk and directory exist.
2 Installation
 The commands procedures to use CD are kept in the directory USR$LIBRARY
 (DBA0:[USRLIB]).  To use them, you must include the following command
 in your LOGIN.COM procedure:

   $ CD :== @USR$LIBRARY:CD

 Now you will be able to use the commands as described.
2 Gripes
 Send gripes to JOE.
