GetEnvironmentVariable()

语法

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

参数

Name$ The name of the environment variable to get.

返回值

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

示例

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

参阅

SetEnvironmentVariable()

已支持操作系统

所有

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