Wednesday, January 24, 2007

Changing the startup directory for the Command Prompt

In order to change the default startup directory for Command Prompt - do the following


Go here:

HKEY_CURRENT_USER \ Software \ Microsoft \ Command Processor

If Autorun is missing, create a new String Value here. Change the Autorun value data in the following way:

CD /d C:\directory_to_folder

So, for example, I set my startup directory to:

CD /d C:\Documents and Settings\Jonathan\Desktop\dev

restart the command prompt.

No comments: