Hi,
In trying to get a return value out of Procomm 4.8, I have the following script that is supposed to set a USER (NOT SYSTEM) environment variable on Win2003 Server. Procomm is running locally and the user is running with ADMIN priviledges. Nevertheless, I cannot seem to get Procomm to set the value of the environment variable. Is my syntax ok?
My errormsg does NOT fire, and Procomm does exit as if Putenv had succeeded, even though it did nothing to change the environment variable's value.
By chance, is putenv only for establishing and setting NEW environment variables, as opposed to setting the values of already established variables?
Thanks
JT
In trying to get a return value out of Procomm 4.8, I have the following script that is supposed to set a USER (NOT SYSTEM) environment variable on Win2003 Server. Procomm is running locally and the user is running with ADMIN priviledges. Nevertheless, I cannot seem to get Procomm to set the value of the environment variable. Is my syntax ok?
Code:
proc main
string EnviroString ; String to put
pause 5
EnviroString = "PROCOMMRV=true" ;Set value
if not putenv EnviroString
errormsg "Could not set environment variable"
else
pwexit
endif
endproc
By chance, is putenv only for establishing and setting NEW environment variables, as opposed to setting the values of already established variables?
Thanks
JT