Set default path for cmd.exe

  • Thread starter Thread starter Joe
  • Start date Start date
J

Joe

Is there a way to have windows open a cmd.exe window using
the current path? In Windows 98 if you were in explorer
and you open a dos window it would show the current
directory. In Windows 2000 it always take you to c:\
 
start cmd.exe /d%path%

If you put it in a batch file named %windir%\system32\cmd.cmd, it will start
cmd.exe in whatever your current path is whenever you run "cmd".

Hope that helps.
 
Hi, Joe.

Right-click on the C:\ icon, click Properties. On the Shortcut tab, put
whatever directory you want into the Start in box. You can use environment
variable names; mine is set to Start in %HomeDrive%\, which, for me, is D:\.

While I was on that page, I set the Shortcut key to M (for MS-DOS) (That's
converted automatically to Ctrl+Alt+M.) so that, no matter which program I'm
working in, I can just press Ctrl+Alt+M and immediately be in a "DOS" window
at the D:\ prompt. I also set it to full-screen, blue with bright-white
text, just like in "the good old days". ;<)

RC
 
Back
Top