Environment Macros

You can use macros in your environment settings, as shown in the following listing.

Listing: Using Macros for Setting Environment Variables
MyVAR=C:\test
TEXTPATH=$(MyVAR)\txt
OBJPATH=${MyVAR}\obj

In the example above, TEXTPATH expands to C:\test\txt and OBJPATH expands to C:\test\obj. You can use $() or ${}. However, you must define the referenced variable.

You may also use special variables when using macros. Always surround special variables with brackets {}. Special variables are case-sensitive. In addition, the variable content contains the directory separator ` \'. The special variables are: