PDA

View Full Version : set path variable



slags
03-07-2002, 02:36 PM
how to set the path varibale in win2k.
even if say
set path=%path%;"path to be set"
the change is not made permanently.
can anyone tell me how can i change it without going to the control panel and changing the environment variable by clicking the system icon.
i want this to be done through dos prompt ..

reghakr
03-08-2002, 01:06 AM
Have you checked here:

HKEY_LOCAL_MACHINE\CurrentControlSet\Session Manager\Enviro*****

The ***** denotes my computer froze running RegMonEx /images/forums/icons/shocked.gif It's there somewhere.

reghakr

slags
03-08-2002, 03:48 AM
i find the entries for path variable in the registry in hex.is there anyother option than this one to change the path variable.becos i want it to be done through the code written by me

reghakr
03-09-2002, 12:04 AM
slags,

I find they are RE_EXPAND_SZ values.

The corect key loacation is:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Session Manager\Environment

reghakr