Trying to append to our current PATH variable

  • Thread starter mfitzge9 AT nycap DOT rr DOT com
  • 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
 
J

John Phillips

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top