Monday, December 6, 2010

Change Default command prompt path

When you try to open command prompt window in windows, it starts from its default path i.e from the current user's home folder. But what yo do if you want start from you desired location? Here is the answer.
Backup your regedit or Registry editor before proceeding.Setting the default command prompt directory can be done with a simple registry hack (trick).
In the registry editor, navigate to the following location:

HKEY_CURRENT_USER\Software\Microsoft\Command Processor

If there is no Autorun string value, create it. Then, set it's value to the directory you would like it to default to in this way (if it exists, modify it):

CD /d d:\
Where d:\ is the path I've chosen as the default.

That's it. You're done.

No comments:
Write comments