Windows - Change the default path of cmd to C:?

I've done this before and my google-fu is failing.

How do you change it so when you do Start/Run CMD to get to the command prompt you start at C: rather than C:\Docs&Settings\YourProfile?

Create a shortcut to c:\winnt\systems32\cmd.exe. Edit the "Start in" location to "C:\"

MS Technet was about worthless looking this up. There's probably a reg key or environment variable that can be set, but I wasn't having much luck finding one. One more icon to clutter the desktop, yea!

It's controlled by an environment variable called "Homedrive".

You can edit it in your registry under \HKEY_CURRENT_USER\Volatile Environment\. Just double click the HomeDrive key and change it to whatever you want.

After changing it, for it to go into effect you can do one of two things: 1.) Reboot, or 2.) Right click on My Computer, select Properties, click the 'Advanced' tab, then click the 'Environment Variables' button. Select any of the "System Variables" under there and click EDIT, then just click OK (without changing anything), and then click OK again and this will cause all your environment settings to refresh, which will load your new HomeDrive settings into memory.

Vega wrote:

It's controlled by an environment variable called "Homedrive".
You can edit it in your registry under HKEY_CURRENT_USERVolatile Environment. Just double click the HomeDrive key and change it to whatever you want.

I'm looking at my registry and I think it's "Homepath" not drive. My homedrive is already set to C: and my cmd.exe starts in docs and settings\username. My homepath is set to \documents and settings\username.

Hemidal wrote:

I'm looking at my registry and I think it's "Homepath" not drive. My homedrive is already set to C: and my cmd.exe starts in docs and settings\username. My homepath is set to \documents and settings\username.

Ah, okay, that makes sense. My HomePath was just set for "\" when I looked at it. It must just combine the 2 keys then because when I set the HomeDrive to "C:\testing" it worked since the key was just tacking "\" to the end of it.

Thank you, I didn't have the HOMEPATH string in my reg, adding it and setting it to \ then doing the refresh got the desired result.