> Automation > Objects > System > Set Environment Variable

Set Environment Variable

Sets the value of the given environment variable.



Input Parameters

Name Type Required Description
Variable String Yes The name of the environment variable to return.
Value String Yes The value of the variable
Type String Yes The type of variable 'User' or 'Machine' (System), 'Process'

Output Parameters

Name Type Description
Result Number Returns a success value of zero or any value other than zero to indicate failure.

Example Input Parameters

Name Type Required Example
Variable String Yes MSP Share
Value String Yes \\servername\shared_folder
Type String Yes Process