Saturday 6 June 2015

Changing default directory of CMD

To change default directory of CMD follow these steps:

  • Open CMD and type regedit and press Enter
  • Registry Editor will open. 

  • Navigate to the key HKEY_CURRENT_USER \ Software \ Microsoft \ Command Processor from left side. Now Right click on right panel. Select New, then String Value


  • Name it as Autorun

  • Now double click Autorun and type cd /d "New Path" in Value Data textbox. For example if you want that whenever you open CMD the default path will be E:\GSBPROGRAMMING then you will type as: cd /d E:\GSBPROGRAMMING then click OK and close the Registory Editor and also CMD.

  • Now open CMD again and it will open with new default directory everytime

No comments:

Post a Comment