getEnvironmentVariable

getEnvironmentVariable(name: String): String;

The getEnvironmentVariable method of the Node class returns a string containing the value of the user or system environment variable specified in the name parameter of the node of the receiver object.

The value specified in the name parameter equates to a variable listed in the Variable column on the Environment Variables dialog (accessed by selecting the Advanced sheet on the System Properties dialog). The returned value equates to the corresponding value listed in the Value column on the Environment Variables dialog for that row. For example, envvar := node.getEnvironmentVariable("TEMP"); could return C:\WINNT\TEMP.

For details about returning the architecture-specific version of the directory in which temporary files are placed, see the Node class getTempPath method.