Reading environment variables is all very well, but how do
I write them ?
Using the WSH I am calling an application using:
The problem is that this programs needs some Environment variables set in order to work...
I found the:
What I need is the corresponding:
But I can't find it..
I write them ?
Using the WSH I am calling an application using:
Code:
set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "Someprogram" , 1, TRUE
I found the:
Code:
Set WshUsrEnv = WScript.Environment("User")
WshUsrEnv.Remove("EXAMPLE_1")
Code:
WshUsrEnv.Add("MYVAR=Something")