This method returns the value of a Windows environment variable.
EnvVarValue = Exec_Method( "SYSTEM", "GETENVVAR", EnvVarName )
Name | Required | Description |
---|---|---|
EnvVarValue | Yes | Name of the environment variable to query. |
The value of the specified Windows environment variable.
This method is a simple wrapper around the Windows API GetEnvironmentVariable function - further information regarding Windows environment variables may be found on the MSDN website.
// Get the value of the Windows "SystemDrive" variable SessionName = Exec_Method( "SYSTEM", "GETENVVAR", "SystemDrive" )
SETENVVAR method, ENVVARLIST property