command line question

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
 
T

Tim Meddick

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. :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top