GetEnvironmentVariable()

Syntax

Result$ = GetEnvironmentVariable(Name$)
Description
Returns the content of the specified environment variable from the programs environment block.

Parameters

Name$ The name of the environment variable to get.

Return value

The environment variable value, or an empty string if the environment variable does not exist.

Example

  ; Display the content of the "PATH" environment variable
  ;
  Debug GetEnvironmentVariable("PATH")

See Also

SetEnvironmentVariable()

Supported OS

All

<- ExamineEnvironmentVariables() - Process Index - IsProgram() ->