- Posts: 45
- Thank you received: 0
Changing command prompt drive
20 years 11 months ago #1806
by thorpe
Changing command prompt drive was created by thorpe
When I open up cmd on windows XP it first goes to my X: drive ,that doesn't exisit
Is it possible to change what drive the cmd goes to eg C:\
is it stored in the regsitry etc...
thanks
Is it possible to change what drive the cmd goes to eg C:\
is it stored in the regsitry etc...
thanks
20 years 11 months ago #1807
by Chris
Chris Partsenidis.
Founder & Editor-in-Chief
www.Firewall.cx
Replied by Chris on topic Re: Changing command prompt drive
Does this happen when you open the command prompt from "start-->run-->cmd" or when you double click at an existing shortcut to the 'dos prompt' ?
Chris Partsenidis.
Founder & Editor-in-Chief
www.Firewall.cx
20 years 11 months ago #1809
by sahirh
Sahir Hidayatullah.
Firewall.cx Staff - Associate Editor & Security Advisor
tftfotw.blogspot.com
Replied by sahirh on topic Re: Changing command prompt drive
Very simple solution, if you have a shortcut for it then just right click it and go to properties. By default it starts in %HOMEDRIVE%%HOMEPATH%, but you can change the 'Start in' section to whatever you want.
for my %HOMEDRIVE%%HOMEPATH% translates to :
[code:1]
C:\>echo %HOMEDRIVE%%HOMEPATH%
C:\Documents and Settings\Firestarter
C:\>
[/code:1]
You can also get Powertoys for XP which has a nice little 'open command prompt here' shell addon. Basically if you right click any drive / folder in explorer, it gives you the option of opening a command prompt in that directory. Very useful.
for my %HOMEDRIVE%%HOMEPATH% translates to :
[code:1]
C:\>echo %HOMEDRIVE%%HOMEPATH%
C:\Documents and Settings\Firestarter
C:\>
[/code:1]
You can also get Powertoys for XP which has a nice little 'open command prompt here' shell addon. Basically if you right click any drive / folder in explorer, it gives you the option of opening a command prompt in that directory. Very useful.
Sahir Hidayatullah.
Firewall.cx Staff - Associate Editor & Security Advisor
tftfotw.blogspot.com
20 years 11 months ago #1841
by Dudbolt
Replied by Dudbolt on topic Command line autocomplete
There is also a nifty little utility that will allow you to auto complete [sort of ] your command line.
HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Command Processor
Right click on CompletionChar
DWORD change that to 9
restart and you are done. Pressing tab in the command line can complete the next match of the command that you are typing.
Just another thing to play with.....
Db
HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Command Processor
Right click on CompletionChar
DWORD change that to 9
restart and you are done. Pressing tab in the command line can complete the next match of the command that you are typing.
Just another thing to play with.....
Db
Time to create page: 0.130 seconds