Skip to main content

Changing command prompt drive

More
20 years 5 months ago #1806 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
More
20 years 5 months ago #1807 by Chris
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
More
20 years 5 months ago #1809 by sahirh
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.

Sahir Hidayatullah.
Firewall.cx Staff - Associate Editor & Security Advisor
tftfotw.blogspot.com
More
20 years 5 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
Time to create page: 0.145 seconds