home *** CD-ROM | disk | FTP | other *** search
- Assume that some of the directories on hard disk C: were as
- follows:
-
- C: ROOT DIRECTORY
- ---------
- / | \
- / | \
- / | \
- / | \
- PROJECTS TESTS BUDGETS SUBDIRECTORIES
- -----
- / \
- / \ additional
- DONE PENDING SUBDIRECTORIES
-
-
- In the sample disk structure above we have subdirectories
- PROJECTS, TESTS, BUDGETS, DONE, and PENDING. Assume that before
- beginning with these examples, the root directory C: is the current
- directory.
-
-
- SAMPLE command to use CD | Comments about the output
-
- CD PROJECTS To change the current (default)
- directory from C: to PROJECTS, use
- this command. PROJECTS is now the
- current directory.
-
- CD C:\TESTS\DONE This command will change it to DONE,
- whether C: or PROJECTS was the current
- directory when this command was typed.
-
- CD C:\TESTS\PENDING The current directory will be PENDING
- after this command is executed.
-
- CD ..\DONE This example shows a shortcut method to change
- the default directory from PENDING to DONE,
- using a relative path name, rather than the
- one that begins with \. The .. tells DOS to
- back up one level in the directory tree. See
- the DIR EXAMPLES SUBDIRECTORIES topic for more
- information about subdirectories.
-
- CD \ This changes the current directory to
- the root directory. The root directory
- is the same as the drive name, in this
- case C:.
-
- CD This command, without any options, simply
- C:\ prints the current directory name.