====== GETENVVAR method (System) ====== ==== Description ==== This method returns the value of a Windows environment variable. ==== Syntax ==== EnvVarValue = Exec_Method( "SYSTEM", "GETENVVAR", EnvVarName ) ==== Parameters ==== ^Name^Required^Description^ |EnvVarValue|Yes|Name of the environment variable to query.| ==== Returns ==== The value of the specified Windows environment variable. ==== Remarks ==== 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. ==== Example ==== // Get the value of the Windows "SystemDrive" variable SessionName = Exec_Method( "SYSTEM", "GETENVVAR", "SystemDrive" ) ==== See Also ==== SETENVVAR method, ENVVARLIST property