Chdir (Cd)

Displays the name of the current directory or changes the current folder.

chdir [/d] [drive:][path] [..]

-or-

cd [/d] [drive:][path] [..]

Parameters

none

Used without parameters, chdir displays the names of the current drive and folder. Used with only a drive letter (for example, cd C:), chdir displays the current directory on the specified drive.

[/d]

Changes the current drive in addition to changing the current directory for a drive. With command extensions enabled (the default in Windows 2000), the current directory name is converted to use the same case as the actual directory names on the disk. So, for example, cd C:\Temp sets the current directory to C:\Temp if that is its name on the disk.

[drive:][path]

Specifies the drive (if other than the current drive) and directory to which you want to change.

[..]

Specifies that you want to change to the parent folder.

Windows 2000 Command Reference Main Page

Mkdir (md)

Cmd

Chdir Notes

Chdir Examples