Change the default Command Prompt directory

Whenever you open the Command Prompt in Windows you are taken to a default directory which 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.
I decided to go a step further and change the default Command Prompt directory to c:\windows\system32. That is my choice, you can set it to any directory that you want. To change the default Command Prompt directory open the Registry by pressing Windows R, typing regedit and hitting enter.
Navigate to the key HKEY_CURRENT_USER \ Software \ Microsoft \ Command Processor and search for the String Autorun in the left window. If that string is not existing yet create it. Double-click it afterwards and add the new directory path in the following way:
CD /d c:\windows\system32
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 new folder that you have selected.

No comments:

Post a Comment