The reason why you're probably never gonna see SetEnvironmentVariable in te
framework is due to the encouragement of utilizing config files as your
settings. Of course, we as developers can fight that by adding things back
in, but the focus has shifted from Environement Variables -> Registry ->
config files, and I think its a good change... its a whole lot easier to
shift config files around then it is to write a batch file or a "Reg Import"
when you want to duplicate or just move apps around.
--
Eric Newton
C#/ASP Application Developer
http://ensoft-software.com/
(e-mail address removed)-software.com [remove the first "CC."]
Bill Davidson said:
Thanks,
Perhaps I'll just call the SetEnvironmentVariable() Win32 API via P/Invoke.
I just figured the Framework Class Libraries wrapped this call, but I just
couldn't find it.
Thanks for your help,
Bill