" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#008000" VLINK="004000" ALINK="#00C000">
CHDIR COMMAND
Purpose: Changes current DOS directory of the mentioned or current disk
drive or displays the current path of a disk directory.
Syntax: CHDIR [d:][path]
or
CD [d:][path]
Type: Internal command
Parameters:
[d:] - defines a drive, the current directory of which should be changed
or viewed.
[path] - defines the path to the required directory (the path_name can not
be longer than 63 characters).
If a drive name is not mentioned, the current one is assumed. The
CHDIR command without parameters displays the current drive.
Examples:
1. Changing the current directory of a floppy disk to the root one:
A:\DOS>CHDIR \
2. Displaying the current directory of the A: drive:
A:\DOS>CHDIR
The screen will display: A:\DOS
3. Changing the current directory of the B: drive to \dir1\dir2:
A:\>CD b:\dir1\dir2
4. Changing the current directory of the B: drive to a path extended by
the dir3 directory:
A:\>CD b:dir3
WARNING! The real name of a directory may be hidden by ASSIGN, SUBST and
JOIN commands. The following example illustrates how one may work
with the C: drive, when the A: drive is the current one:
A:\>JOIN C: A:\CDRIVE
A:\>CD \CDRIVE