defualt location of when opening cmd.exe

  • Thread starter Thread starter keven
  • Start date Start date
K

keven

Without making a batch file and changing the default open
location is there a way to do a start run cmd and have the
cmd open on the C:\. I have read that the homepath%
controls this. is there a way to change this in the
environment or the registry?

Thanks Keven
 
keven said:
Without making a batch file and changing the default open
location is there a way to do a start run cmd and have the
cmd open on the C:\. I have read that the homepath%
controls this. is there a way to change this in the
environment or the registry?

Thanks Keven

Start | Run : %comspec% /k pushd c:\
 
keven wrote in
Without making a batch file and changing the default open
location is there a way to do a start run cmd and have the
cmd open on the C:\. I have read that the homepath%
controls this. is there a way to change this in the
environment or the registry?

%homepath%, %homedrive% and several others are set dynamically at
system startup or at user logon. You should not try to override such
variables.

Phil posted one solution.

IMO the easiest/handiest thing is to create a shortcut to CMD and
specify 1) a "Start In" location and 2) a "Shortcut Key".
Provides very quick access and can be customized as you like it.

There is another for running a batch file for all instances of
CMD.EXE. It's obscure and potentially very confusing to anyone not
looking for it.
 
Back
Top