EnvGet

AutoHotkey GUI

EnvGet [v1.0.43.08+]

Retrieves an environment variable.

EnvGet, OutputVar, EnvVarName

Parameters

OutputVar

The name of the variable in which to store the string.

EnvVarName

The name of the environment variable to retrieve. For example: EnvGet, OutputVar, Path.

Remarks

If the specified environment variable is empty or does not exist, OutputVar is made blank.

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

Related

EnvSet, #NoEnv, environment variables, EnvUpdate, SetEnv, Run, RunWait

Example

EnvGet, OutputVar, LogonServer