Adding and modifying Windows System Variables

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello all!

I have been looking in the Framework documentation for an answer and it has
not shown itself. Could someone tell me if it is possible with VB or C# to
add and modify Windows System Variables? If so, how with .NET 1.1 or 2.0?

I need to be to set certain program settings in a specific variable and
would prefer doing it programmatically and not manually.

Thanks for your help.

Sean Campbell
 
Hello, Sean!

SC> I have been looking in the Framework documentation for an answer and it
SC> has not shown itself. Could someone tell me if it is possible with VB
SC> or C# to add and modify Windows System Variables? If so, how with .NET
SC> 1.1 or 2.0?

SC> I need to be to set certain program settings in a specific variable and
SC> would prefer doing it programmatically and not manually.

If you mean Environment variables then you can use
Environment.GetEnvironmentVariable/SetEnvironmentVariable methods for environment vars management.

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
 
Hello Vadym!

That is exactly what I needed. I was going through some documentation and it
referred to System Variables and the framework doc uses Environment
Variables. Thanks for the help.

Sean Campbell
 
Back
Top