473,385 Members | 1,528 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Adding and modifying Windows System Variables

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
Feb 13 '06 #1
2 1393
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
Feb 13 '06 #2
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

"Vadym Stetsyak" wrote:
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

Feb 13 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Marcus Schneider | last post by:
Sorry if this is an extremely stupid question: I produced some Python modules with TKinter stuff and now I want to use that from my main program. The windows have wuite some user interaction....
0
by: Dave Elliott | last post by:
After inserting a new data row to a DataTable that is bound to a datagrid, I am unable to change data in a row that is after the newly added row without getting bizarre results. I have added the...
0
by: Chris Millar | last post by:
I have a user control that i wish to extend to change the date when the user selects the numeric up down button. The code explains itself, hope someone can help. any ideas appreaciated.. ...
3
by: Casper | last post by:
Hi .Net experts, I am trying to build a user control of textbox and would like to add a public method to the object like public void CheckOptions(string str) { // codes here }
7
by: lvpaul | last post by:
Hallo ! I am using IIS-Windows-Authentication in my intranet (web.config <authentication mode="Windows" /> <identity impersonate="true" /> How can I get the users (client) IP-Address ? I...
11
by: Pete Kane | last post by:
Hi All, does anyone know how to add TabPages of ones own classes at design time ? ideally when adding a new TabControl it would contain tab pages of my own classes, I know you can achieve this with...
7
by: Maximus Decimus | last post by:
HI all, I am using python v2.5 and I am an amateur working on python. I am extending python for my research work and would like some help and guidance w.r.t this matter from you experienced...
9
by: koschwitz | last post by:
Hi, I hope you guys can help me make this simple application work. I'm trying to create a form displaying 3 circles, which independently change colors 3 times after a random time period has...
2
by: =?Utf-8?B?QnJhc3NpY2FOaWdyYQ==?= | last post by:
Greetings, Recently I upgraded to Windows Vista Ultimate and VS2008 with SQLExpress 2008. For the last several years I have been using Windows XP SP2 and VS2005 with SQLExpress 2005. All of...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.