CMD Start directory

  • Thread starter Thread starter ChrisB
  • Start date Start date
C

ChrisB

We recently started mapping home directories to a win2k server from Novell.
Now when i start a CMD screen by going start>run>cmd it brings me to the
H:\. Can this be switched back to start on the c:\?
 
ChrisB said:
We recently started mapping home directories to a win2k server from Novell.
Now when i start a CMD screen by going start>run>cmd it brings me to the
H:\. Can this be switched back to start on the c:\?

Here's some ideas:

- You could override the %HOMEDRIVE% variable in your login script or in a
Startup shortcut

- From Start/Run you could type "cmd /k cd /d c:\"

- Instead of using Start/Run, create a .lnk shortcut somewhere on your Start
Menu or Desktop, and then assign a hotkey to it. Pressing a hotkey like
CTRL+SHIFT+C is a lot quicker than CTRL+ESC, R, Cmd, [Enter]
 
ChrisB wrote in
We recently started mapping home directories to a win2k server
from Novell. Now when i start a CMD screen by going start>run>cmd
it brings me to the H:\. Can this be switched back to start on the
c:\?

Simplest is to use shorcuts or other means to specifiy the "Start
In" location.

If you must have Start, Run..., cmd.exe starting in other that %
HOMEDRIVE%%HOMEPATH%, one solution is to use a cmd.exe "AutoRun"
registry entry to execute a batch file containing
CD /d C:\

System:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor\
AutoRun=
(REG_SZ)
fully qualified path to setdrive.cmd (or whatever)

User:
HKEY_CURRENT_USER\Software\Microsoft\Command Processor\

Don't try to over-ride the system generated HOMEDRIVE and HOMEPATH
variables.
 
Back
Top