home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / doshelp / helpsb.zoo / help / path / examples.hlp next >
Encoding:
Text File  |  1989-01-01  |  1.5 KB  |  45 lines

  1. Assume that some of the directories on hard disk C: were as 
  2. follows:
  3.  
  4.              C:            ROOT DIRECTORY
  5.          ---------
  6.         /    |    \
  7.            /     |     \
  8.           /      |      \
  9.          /       |       \
  10.      PROJECTS  TESTS   BUDGETS    SUBDIRECTORIES
  11.            -----
  12.           /     \
  13.          /       \                 additional
  14.           DONE      PENDING        SUBDIRECTORIES
  15.  
  16.  
  17.      In the sample disk structure above we have subdirectories 
  18. PROJECTS, TESTS, BUDGETS, DONE, and PENDING.  
  19.  
  20. SAMPLE command to use PATH     | Comments about the output
  21.  
  22.   PATH C:\PROJECTS;C:\TESTS\DONE This command instructs DOS to search the
  23.                  PROJECTS and TESTS\DONE directories
  24.                  for a command that is not specified with
  25.                  a pathname if the program to respond to
  26.                  that command is not found in the current
  27.                  directory.
  28.  
  29.   PATH ;             This is how you reset the path back to
  30.                  the current directory only.
  31.  
  32.   PATH                 To see what directory paths are
  33. No Path                 currently specified, simply type PATH
  34.                  with no options.  In this case, there
  35.                  are no directories to be searched other
  36.                  than the current directory.
  37.  
  38.                  If you use this command when you first
  39.   PATH \             start your computer, the root directory
  40.                  in the current disk drive (that hopefully
  41.                  contains DOS and the external commands)
  42.                  will always be searched, no matter what 
  43.                  your current directory is. \ stands for 
  44.                  the root directory.
  45.