Dear,

Welcome to the board.

Another way of get of getting an environment variable is:
f.e. we check environment variable tmp and write its value to the
registry. by errors you will get an error message.

code:

$env=ExpandEnvironmentVars("%tmp%")
IF (len($env) <> 0)
IF (AddKey("HKEY_CURRENT_USER\environment") <> 0)
? "Error "+@error+": "+@serror
ENDIF
ENDIF
IF (ExistKey("HKEY_CURRENT_USER\environment") = 1)
IF (WriteValue("HKEY_CURRENT_USER\environment","tmp",$tmp,"REG_SZ") <> 0)
? "Error "+@error+": "+@serror
ENDIF
ENDIF


Greetings.

------------------
Site map:

_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA