Hi guys, how can I automate, through scripting, setting up environment variables on windows?
-
-
In the .NET Framework 1.1 there is only a possibility to read them. You can write them automatically into the registry. I have used this way and it works. I think it is also possible with WMI.
-
Hey there.
You need to use Interop to access the SetEnvironmentVariable Method in kernel32.dll. See the following.
See Knowledge Base Article # 829145
Have a nice day!
Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.