Setting Environment Variables

Another tidbit from Kit George,
PM on the BCL team:

In Whidbey we added the ability
to set environment variables.  To
see an example check out the Managed Explorer sample available at:

"urn:schemas-microsoft-com:office:office" /> 



You’ll see there is a couple of
ways to get and set Environment Variables. The key thing is, if you want to
differentiate the variables, use the EnvironmentVariableTargets enumeration,
which has User, Machine, and Process (default). And you will now find new
GetEnvironmentVariable APIs on Environment, and new SetEnvironmentVariable


Comments (1)