home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / doshelp / helpsb.zoo / help / cd / examples.hlp next >
Encoding:
Text File  |  1989-01-01  |  1.6 KB  |  52 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.  Assume that before
  19. beginning with these examples, the root directory C: is the current  
  20. directory. 
  21.  
  22.  
  23. SAMPLE command to use CD      | Comments about the output
  24.  
  25. CD PROJECTS            To change the current (default) 
  26.                 directory from C: to PROJECTS, use 
  27.                 this command. PROJECTS is now the 
  28.                 current directory.
  29.  
  30. CD C:\TESTS\DONE        This command will change it to DONE, 
  31.                 whether C: or PROJECTS was the current 
  32.                 directory when this command was typed.
  33.  
  34. CD C:\TESTS\PENDING        The current directory will be PENDING 
  35.                 after this command is executed.
  36.  
  37. CD  ..\DONE            This example shows a shortcut method to change
  38.                 the default directory from PENDING to DONE,
  39.                 using a relative path name, rather than the 
  40.                 one that begins with \. The .. tells DOS to
  41.                 back up one level in the directory tree. See 
  42.                 the DIR EXAMPLES SUBDIRECTORIES topic for more 
  43.                 information about subdirectories.
  44.  
  45. CD \                This changes the current directory to 
  46.                 the root directory.  The root directory
  47.                 is the same as the drive name, in this 
  48.                 case C:.
  49.  
  50. CD                This command, without any options, simply
  51. C:\                prints the current directory name.
  52.