EnvGet

Retrieves an environment variable.

Value := EnvGet(EnvVarName)

Parameters

EnvVarName

Type: String

The name of the environment variable to retrieve. For example: Path := EnvGet("Path").

Return Value

Type: String

This function returns the value of the specified environment variable. If the specified environment variable is empty or does not exist, an empty string is returned.

Remarks

The operating system limits each environment variable to 32 KB of text.

This function exists because normal script variables are not stored in the environment. This is because performance would be worse and also because the OS limits environment variables to 32 KB.

Related

EnvSet, environment variables, Run, RunWait

Examples

#1

LogonServer := EnvGet("LogonServer")