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)