GetEnvironmentVariable()

Syntax

Result$ = GetEnvironmentVariable(Name$)
Description
Returns the content of the specified environment variable from the programs environment block. If the variable does not exist, an empty string is returned.

Example:
  ; Prints the content of the "PATH" environment variable
  ;
  OpenConsole()
  PrintN(GetEnvironmentVariable("PATH"))
  PrintN("")
  PrintN("Press Enter to quit.")
  Input()

Supported OS

All

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