Displays the name of the current directory or changes the current directory. If used with only a drive letter (for example,
chdir C:), chdir displays the names of the current directory in the specified drive. If used without parameters, chdir displays the current drive and directory.
This command is the same as the chdir command.
cd [/d] [<drive>:][<path>] cd [..] chdir [/d] [<drive>:][<path>] chdir [..]
|/d||Changes the current drive as well as the current directory for a drive.|
||Specifies the drive to display or change (if different from the current drive).|
||Denotes the path to the directory that you want to display or change.|
|[..]||Specifies that you want to change to the parent folder.|
|/?||Displays help at the command prompt.|
If you enable the command extensions, the following conditions apply to the cd command:
- It converts the current directory string to use the same case as the names on the disk. For example,
cd c:\tempwould set the current directory to C:\Temp.
- Spaces ignored as delimiters, so
<path>can contain spaces without enclosing quotation marks. For example:
cd username\programs\start menu
cd "username\programs\start menu"
If you disable the extensions, you must use quotation marks.
- To disable command extensions, type:
To return to the root directory, the top of the directory hierarchy for a drive:
To change to a different default directory from the one you are on:
To verify the change to the directory, type: