getenv


Returns the value of the (OS) environment variable varname.


$(GETENV, varname)

 

If no variable with that name is defined, it returns the null string.

 

Examples

Code Returns
$(getenv,OS)

Windows_NT

$(getenv,TEMP) C:\Users\username\AppData\Local\Temp
$(getenv,WINDIR) C:\Windows
$(getenv,FOO)

 

 

 

See also...

DIESEL functions
 
Bricscad™ is commercialized by Bricsys NV. Bricsys NV and Vondle NV are fully owned subsidiaries of Menhirs NV. Copyright © 2001- Menhirs NV - All rights reserved.