The description below is from the book DOS the
Easy Way by Everett Murdock Ph.D.
for information about downloading the book.
Type: Internal (2.0 and later)
CHDIR (CD) [d:]path
Purpose: Displays working (current) directory and/or changes to a
Used to change from one directory to another you specify. The command
used without the drive designator (d:) if you were changing to a
directory on the current drive. The path designator can indicate a
within another directory or subdirectory, but it must not exceed 63
in length. The command followed by two periods (CD..) can be used to
the parent directory.
Enter CHDIR or CD without a drive and path designation to get a display
For more information on CHDIR and other hard disk commands, see Chapter 3,
Using Fixed Disks, in the downloadable
book DOS the Easy Way .
To demonstrate how the CHDIR command accesses the DOS directory
assume that two directories, WORDS and FILES have been created on a
two directories are to be found within the root directory. Assume also
additional directory, LETTERS is to be found within the WORDS directory.
To change to the directory LETTERS (that is within the directory WORDS)
root directory of drive C, enter
The command indicates the path sequentially down through the directory
the first backslash indicates the root directory, down through the
WORDS, down to the target directory LETTERS.
If you are already working in the WORDS directory, you can change back to
root directory simply by entering
To change to a directory path other than through the root directory, do
enter the leading backslash. For example, if you are working in the
directory, you can change to the LETTERS directory without going through
root directory by entering
A shortcut method to change to the directory immediately above the
directory allows you to enter the CHDIR command followed by two periods.
example, to change from the LETTERS directory to its parent directory,
Enter it again to change to the next higher directory (in this case, the