SetEnvVariable Method (Scripting Object)

Object: Scripting Object

Set Environment variable. This will only set the value for the current process.

Usage

Scripting.SetEnvVariable (ByVal VariableName As String, ByVal Value As String) As Boolean

Arguments

VariableName

Name of the environment variable.

Value

Value of the environment variable.

Return Values

Boolean indicating of the method succeeded (True) or failed (False).