Note: This function can only be used in a Trusted Macro
This function is useful for situations where the script may wish to interact with the environment outside of MapTool, such as using the exportData() function to write a string to an external file.
The value of
varname specifies which environment variable is queried. On most operating systems, environment variables are all uppercase letters, but this is a naming convention and not required. Note that no way exists to query what all of the environment variables are, so the script writer must know which variable they want to retrieve.
[getEnvironmentVariable("PATH")] [getEnvironmentVariable("TEMP")] [getEnvironmentVariable("USERNAME")]