Environment

 

 

 

Environment

 

Description

Returns the value of an environment variable.

 

Arguments

1.Environment - Name of the Macro.

2.Environment Variable - The name of an environmental variable to return.  To view a list of potential variables open a command prompt, type SET, and press ENTER.

3.Default Value - An optional default value which, if no Environment Variable is returned, will become the value.

 

Examples

[Environment|SystemDrive]

Returns the value of the environment variable SYSTEMDRIVE if it is present.  If it is not present it returns an empty string.

 

[Environment|TEMP|C:\TEMP]

Returns the value of the environment variable TEMP if it is present.  If it is not present it returns C:\TEMP.

 


Copyright © 2024 pasUNITY, Inc.

 

Send comments on this topic.



Created with an evaluation copy of HelpSmith.
To remove this notice, you should purchase the full version of the product.