User Tools

Site Tools


en:cd_command

Changes the directory or displays its name.

CHDIR [/D] [drive:][path] CHDIR [..] CD [/D] [drive:][path] CD [..]

..   Specifies that you want to change to the parent directory.

Enter “CD drive:” to display the current directory on the specified drive. drive. CD without parameters displays the current drive and directory. directory is displayed.

Use the /D option to change the current drive in addition to changing the directory. also change the current drive.

If the command extensions are activated, CHDIR is changed as follows changed:

The specified directory name is converted so that it matches the name in terms of upper and lower case. case-sensitive to match the name on the drive. For example CD C:\TEMP sets the current path to the directory C:\Temp if a directory with this name exists on the drive. directory with this name exists on the drive.

The CHDIR command does not treat spaces as separators, so that it is possible to change to a subdirectory whose name contains spaces without enclosing the name in quotation marks. Example:

  cd \WINNT\Profile\Username\Programs\Startmenu

is the same as:

  cd "\WINNT\Profile\username\Programs\Startmenu"

If the command extensions are deactivated, the quotation marks must be characters must be specified.

Translated with DeepL.com (free version)

en/cd_command.txt · Last modified: 2024/02/18 18:00 by 127.0.0.1