How to Change Command Prompt CMD Default Startup Directory

Updated on August 30, 2015
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

The default Command Prompt (CMD.exe) directory is usually your Documents and Settings Username directory. Most of the time you navigate away from it because you need to access files that cannot be accessed from there.

How to Change Command Prompt CMD Default Startup Directory

If you wish to change the default startup directory for Command Prompt, use the steps listed below
To change the default Command Prompt directory:
1- Click Start, Run and type Regedit.exe
2- Navigate to the path HKEY_CURRENT_USER Software Microsoft Command Processor
3- In the right-pane, double-click Autorun and set the startup folder path, for example by ” CD /d C: ” without quotes. If Autorun value is missing, you need to create one, of type REG_SZ (String Value) in the above location.

Related Article  How to Reset Default Domain Policy & Domain Controller Policy

Example1: To set the startup directory to C:Windows, set the Autorun value data to CD /d C:Windows

Example2: To set the startup directory to D: , set the Autorun value data to CD /d D:

Change-Default-CMD-Directory

Changes take effect immediately which means you can test right away. The default directory for the Command Prompt is changed before it is displayed which means that you already start in the folder that you have selected.

Change-Default-CMD-Directory