I need some help with programmatically setting environment variables using C#. I can obtain them easily using System.Environment...but how can I write them?
TIA,
Chi
They mostly come at night...mostly.

Nvm,
I just used:
[DllImport("KERNEL32.DLL")]
public static extern bool SetEnvironmentVariable(string VariableName, string VariableValue);
ChiThey mostly come at night...mostly.
WHAT?! It was THAT easy?! I was very lazy to do that when I coded in C# so I stopped working on the program... :-( http://sulfurmidis.com/sulfursoft
http://tsfc.ath.cx
ftp://tsfc.ath.cx
hotline://tsfc.ath.cxIf I connect my microwave to my PC, will I be able to download food?
After SetEnvironmentVariable(....) is called, does the result persist after the completion of the calling process? Thanks, Guy
