command line question

  • Thread starter Thread starter Newtie
  • Start date Start date
N

Newtie

I've lost my standard command line default path which used to be C:\Documents
and Settings\my username

It now defaults to G:> which at my site is a network drive. How do I reset
it back to the default path?

Thanks,
Mark
 
If you want your 'default' 'Command Prompt' path back (i.e. the folder
you're at when you first start the 'Command Prompt') then add this line to
the file Autoexec.nt in the system32 folder:

if %1]==] cd %USERPROFILE%

Adding this will NOT affect the right-click "Command Prompt from Here" shell
extension, will work as normal. Or you could change %USERPROFILE% for any
folder you want to be the default folder for Command Prompts.



==

Cheers, Tim Meddick, Peckham, London. :-)
 
Back
Top