11.19.2 SetEnvironmentVariable Method

Set the value of an environment variable.

Note that this function works off the environment variable values as they exist in the current process, so it can't be used to set variable values on the global scope.

Input Arguments

Name

Type

Mandatory

Description

Name

String (Unicode)

Yes

The name of the environment variable

Value

String

Yes

The value to set

 

Output Arguments

None.

Return Value

None.