468,737 Members | 2,530 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,737 developers. It's quick & easy.

How do you make and set a environment variable?

2 1047
I am not sure what you mean by 'make' an environment variable.

One option to set env varialbes is to make entries into the registry
directly.
For user-specific env variables: HKEY_CURRENT_USER\Environment
System-wide env variables:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Session
Manager\Environment

For Visual Studio .NET 2005 (Whidbey): Environment.SetEnvironmentVariable()

You might also want to use SetEnvironmentVariable() Win32 API (thru
P/Invoke)
"Larry Wilson" <lw*****@ljbinc.com> wrote in message
news:41***********************@news.twtelecom.net. ..
Nov 21 '05 #2
* "Larry Wilson" <lw*****@ljbinc.com> scripsit:
[Nothing]


<URL:http://groups.google.de/groups?q=dotnet+set+environment+variable>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

28 posts views Thread by Christian | last post: by
13 posts views Thread by Jimmy Cracker | last post: by
1 post views Thread by Bonj | last post: by
4 posts views Thread by | last post: by
3 posts views Thread by Strauss | last post: by
4 posts views Thread by Stephen Cattaneo | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.