PC Review


Reply
Thread Tools Rate Thread

command line question

 
 
Newtie
Guest
Posts: n/a
 
      3rd Jun 2009
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
 
Reply With Quote
 
 
 
 
Rich Barry
Guest
Posts: n/a
 
      3rd Jun 2009
At the command line type: cd C:\Documents and Settings\your username


"Newtie" <(E-Mail Removed)> wrote in message
news7101AC7-F3BC-4EA2-A58F-(E-Mail Removed)...
> 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



 
Reply With Quote
 
Tim Meddick
Guest
Posts: n/a
 
      3rd Jun 2009
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. :-)




"Newtie" <(E-Mail Removed)> wrote in message
news7101AC7-F3BC-4EA2-A58F-(E-Mail Removed)...
> 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



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
gui and command line question jason.s.turner@gmail.com Microsoft C# .NET 2 15th Jul 2006 12:57 PM
command line question =?Utf-8?B?VG9ueQ==?= Microsoft Windows 2000 3 22nd Oct 2005 03:21 PM
Command line question Jeremy Microsoft Frontpage 2 20th Nov 2004 09:54 PM
Command Line question Robert Harris Windows XP Security 3 7th Sep 2004 09:49 AM
VB.NET command line question Scott P Microsoft Dot NET Framework Forms 0 21st Aug 2003 05:51 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:56 PM.