PDA

View Full Version : how to set commmand prompt default path?


kiddJ
December 5th 03, 08:52 PM
Hi everyone:

how do I set the Command prompt's default path to a
certain directory?

please help..

thansx in advance!!

Ramesh
December 5th 03, 08:53 PM
Hi,

Cmd.exe looks for the following registry subkeys first:
HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\AutoRun\REG_SZ

HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun REG_EXPAND_SZ

If either one or both registry subkeys are present, they are executed before
all other variables.

So, you need to add the command (startup) to that registry path. (say,
"cd\windows". It opens with Windows as default path)

--
Ramesh



"kiddJ" > wrote in message
...
Hi everyone:

how do I set the Command prompt's default path to a
certain directory?

please help..

thansx in advance!!

Google