Link to home
Start Free TrialLog in
Avatar of Bladzz30
Bladzz30

asked on

Change the default command prompt in windows 2000

I have an end user that frequently opens a command prompt to use an application. However they must constantly navigate using "cd" to the correct application directory. Is there a way to change the default command prompt path for windows 2000? I found this link which I thought was golden
http://www.winguides.com/registry/display.php/1252/
however I am unable to add a REG_EXPAND_SZ type in the registry? I only have options to add REG_SZ; REG_BINARY; & REG_DWORD? If anyone knows how to change the default command path or how to add a REG_EXPAND_SZ value into a windows 2000 registry I would be very thankful.
Avatar of JammyPak
JammyPak
Flag of Canada image

use Regedt32, not regedit
ps.  I think this link is just changing the appearance of the command prompt - not the default directory it goes to.

I believe that you want to change the environment variables %Homedrive% and %Homedirectory%
you could also create a batch file that automates the process for him... that way they would only have to type "appdir" and it would do the cd's for him.....

Just a thought...
Avatar of Bladzz30
Bladzz30

ASKER

Thanks JammyPak,  regedt32 handles edits for the other value types.
http://www.pcquest.com/content/technology/401030301.asp
However this did not change the default command prompt as you suspected. I didn't quite follow your second suggestion changing the environment variables.
Thanks RevelationCS, I did create a batch file as a temp fix, but would rather have a permanent fix. You know how end users can be sometimes "What's that button for?" Poof smoke!
If your users are always trying to get to a specified directory...why dont you create a right click shell attribute to allow them to right click on any folder and be able to start the CMD shell in the current directory.

This edit will allow all Drives and Directories in your system to be accessed this way

COPY AND PASTE
------------------------------------------------------------------------------------
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Folder\shell\cmd]
@="Shell prompt..."

[HKEY_CLASSES_ROOT\Folder\shell\cmd\command]
@="cmd.exe /k cd %1"
------------------------------------------------------------------------------------

save as "shellattribute.reg"      or whatever
and double click to add these values to the registry

let us know if this works for what you are trying to accomplish !
wtrmk74
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I would like to thank everyone for their suggestions, which all will get the job done. Although I was actually looking for the registry entry to change the default command path, oBdA's answer is certainly an easy and efficient way to accomplish my task!
thanks oBda