CHDIR (CD) + Changing the Current Directory

Makes a new directory or subdirectory current.

VERSION

PC-DOS 2.0+

MS-DOS equivalent: CHDIR (CD) (2.0+)

TYPE

Internal

SYNTAX

CHDIR [d:][path]

OPTIONS

[d:] Specifies the drive letter of the disk

you wish to make current.

[path] Specifies the desired directory path

name to make current. The path name can

be no more than 63 characters, beginning

with the root directory designation (\).

EXAMPLES

ACHDIR C:\WP\LETTERS

changes to the subdirectory LETTERS on drive C. If no drive is

specified, the current drive is assumed.

CCD\

allows you to change to the root directory.

CD ..

makes the current directory the preceding level in the tree.

UNDO

To check your current directory, issue the CD command with

no arguments. The path name of your current directory will be

returned, as in the following example:

CCD

C:\WP\LETTERS

Then, issue the appropriate CD command to make a new directory

current.

NOTE

The CHDIR command is usually abbreviated to CD.

------------------------------------------------------------------

[For related topics, press R]

SEE ALSO

CHKDSK Command

MKDIR Command

PATH Command

RMDIR Command

TREE Command