Trying to append to our current PATH variable

  • Thread starter Thread starter mfitzge9 AT nycap DOT rr DOT com
  • Start date Start date
M

mfitzge9 AT nycap DOT rr DOT com

Hello all,

Thanks in advance. These message boards are great! I'm
not sure if I'm posting this in the correct place but here
goes.

I am trying to come up with a way to remotely append to
our existing environment variable "Path". I am trying to
get this done to about 500 pc's. I know about replacing
Path with this line "PATH = c:\test;%PATH%" but this only
changes it for that one command prompt window. I am
trying to change it perminantly for our users. Does
anyone know of a way to do this

Mike
 
You can change the value of HKLM\System\CurrentControlSet\Control\Session
Manager\Environment.

The caveat to this (or changing the path variable via the control panel
applet) is that environment values are passed to applications on startup,
not periodically throughout their lifetime. Some applications will respond
to a WM_SETTINGCHANGE message, but your best bet is to reboot afterwards.
 
Back
Top