Command Prompt for Windows




Command CHDIR or CD

Function:

Displays the name of or changes the current directory.

Syntax:

CHDIR [/D] [drive:][path]
CD [/D] [drive:][path]
/DChange drive as well as the directory.

Note:

To easily move between nested sub-directories see the command GO.

Type CD drive: to display the current directory for the specified drive.

Type CD without any parameters to display the current directory.

Also see command GO, CDD and Automatic Directory Changing.