471,850 Members | 1,011 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,850 software developers and data experts.

How do you make and set a environment variable?

2 1107
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
reply views Thread by YellowAndGreen | last post: by
aboka
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.