Yes, but can you create them in one session (batch file) and see then in
another?
I just opened 2 command windows.. in one I typed 'set tester=me'. Ten in
that same window I typed set and was able to view it. In the second command
window I typed set it was not present. Seems to prove that env vars defined
in a batch files do not cross process boundaries.
Now, I created an env var named tester in my system properties (as a system
env var) and set its value. Once I hit apply I could open a command window
and type set and see it there..
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:eM**************@TK2MSFTNGP12.phx.gbl...
"Ray Cassick" <rc******@nospam.enterprocity.com> schrieb: Try restarting the PC after you add your vars into the properties area.
I don't think those are dynamic. They get read in when you boot up and I
don't
think they get refreshed without a restart...
It's possible to define environment variables in a batch file which will
be valid until the batch file is processed. I often follow this approach to
start tools which need certain environment variables without the need of
changing the whole system's environment variables.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>