For some reason when I do Start, Run, cmd, Enter it always starts at M:, one of several mapped network drives.

I'd rather have it start on C:, or in C:\dev if possible. Is there a way I can fix this?

link|improve this question

68% accept rate
3  
It could be that drive M: is mapped as the user's "home" folder. – Majenko May 12 '11 at 8:20
@Matt: Yeah, that actually seems to be the case. So I suppose that's why it starts there :) – Svish May 12 '11 at 8:33
feedback

2 Answers

up vote 4 down vote accepted

Create a shortcut to cmd.exe (on the desktop or in your Start menu) and right click on it, select properties. I've forgotten what it's labeled in XP, but in Windows 7 it says "Start in:" put your directory in that box.

For a more permanent solution, you can edit the registry and change the HKEY_CURRENT_USER\Software\Microsoft\Command Processor's Autorun value. See this for details.

link|improve this answer
1  
Used the shortcut trick. Worked perfectly, and doesn't mess with default behaviour and registry stuff :p – Svish May 12 '11 at 8:32
@Svish great! :) – jonsca May 12 '11 at 8:34
feedback

Check the registry key HKEY_CURRENT_USER\Software\Microsoft\Command Processor, item Autorun.

If Autorun contains something like CD /d M:\, just change it to CD /d C:\dev.
If not, then let me know its value on your computer.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.