PDA

View Full Version : Change Environment variable "path" at runtime (without reboot)


tkroeckel
09-07-2006, 09:02 AM
Hi,

I've reviewed the forum concerning the above mentioned problem. I've also checked the KB (SUF70: Setting Environment Variables).

The only way I found is to invoke a cmd-session, using a batch file like "path=%path%";...".

Is there another way possible with no system reboot?

Regards
Thomas

Adam
09-07-2006, 12:58 PM
I am not aware of any such way

Adam

pww
09-07-2006, 04:19 PM
you can add a folder to PATH also by appending it to

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Session Manager\Environment\
- "Path" key (that's for all users so requires admin rights).

If I correctly remember, the newly added folder will be available to any process started afterwards, but will not be available to already running processes.