Amazon.com Widgets

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:

 

http://www.gotdotnet.com/team/clr/bcl/demos/demos.aspx

 

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 APIs.

 

Published 03 January 04 06:51 by BradA
Filed under:

Comments

# Brad Abrams said on February 24, 2004 12:29 AM:
New Comments to this post are disabled

Search

This Blog

Syndication

Page view tracker