EnvVar

Description

This function returns the string value stored in the corresponding Windows environment variable.

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.

Example

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