home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1992 June / SIMTEL_0692.cdr / msdos / dirutl / chd12.arc / CHD.DOC < prev   
Encoding:
Text File  |  1988-04-02  |  2.3 KB  |  39 lines

  1.    CHD : directory changing utility   by  John H. DuBois III     v1.2
  2.    Usage:  chd [<drive>:][<dir>][<control char>]
  3.    <drive> specifies the drive on which the current dir is to be changed.
  4.    <dir> specifies the dir to be changed to.  Wildcards can be given.  If <dir>
  5.     is ended with a control char, like ^D, then a '*' will be added to the name
  6.     part of <dir> and, if an extension is given, to the extension part of
  7.     <dir>.  Thus, only a unique prefix of the target dir need be given.  If an
  8.     environment variable "dnc" is set, the sense of this is reversed: wildcards
  9.     will be added by default, but will not be if <dir> is ended with a control
  10.     char.
  11.    If <dir> is a subdirectory of the current dir, the current dir is changed to
  12.     <dir>.  Otherwise, if environment variable CDPATH is defined, an attempt is
  13.     made to find <dir> as a subdir of the directories given in that var.  The
  14.     directories in CDPATH should be given in the same format that they are in
  15.     the PATH env var.  The dirs in CDPATH are searched from the leftmost dir to
  16.     the rightmost, and the first dir which has <dir> as a subdir is used (its
  17.     subdir <dir> becomes the current dir).  If a dir in CDPATH includes a drive
  18.     specification, it will be considered only if the current drive matches that
  19.     specification.
  20.    If the dir changed to was found in one of the dirs in CDPATH, rather than
  21.     in the current dir, then the full path of the dir changed to is printed.
  22.    If both a drive and a dir are given, an attempt will be made to change the
  23.     current dir on the specified drive to <dir>.  The attempt will fail if
  24.     <dir> is not a subdir of the current dir on the specified drive.
  25.    If the current dir does not have <dir> as a subdir, and either CDPATH is not
  26.     defined or none of the dirs in it have <dir> as a subdir, then an error
  27.     message is printed.
  28.    If CHD is executed without an argument, the full path of the current dir is
  29.     printed.  If it is executed with only a drive name as an argument, the full
  30.     path of the current dir on that drive is printed.
  31.  
  32.     Revision history:
  33.     1.0 : 8/87
  34.     1.1 : 11/87 : Added wildcard capability.
  35.     1.2 : 12/87 : Added DNC env var interpretation.
  36.  
  37.     Send bug reports, suggestions, and comments to
  38.     John DuBois, spcecdt@ucscb.ucsc.edu
  39.