3.5.7.8 EnvVar

Description

This function returns the string value stored in the corresponding Windows environment variable. If this string is not a valid Windows environment variable string, missing will be returned.

Syntax

 string EnvVar("variableName")$

Parameters

variableName

is the name of the Windows environment variable

Return

Return the string value stored in the Windows environment variable. If this string is not a valid Windows environment variable string, missing will be returned.

Example

ty EnvVar("computername")$;//Return the computer name of local machine
ty EnvVar("appdata")$;//Return the directory path to the Application Data folder