How to use a system variable in NAnt script?
Asked Answered
N

2

7

I'm looking for usage of such variables as %WinDir%, %ProgramFiles%, ect. in a NAnt script but I don't know the syntax.

Nepali answered 30/4, 2011 at 8:59 Comment(0)
R
13

${environment::get-variable('WinDir')}

Ruck answered 30/4, 2011 at 9:1 Comment(1)
just to throw this out there setenv is a good complement to get-variable if one wishes to modify one of the variablesEulogium
I
0

You could use the get-variable function.

Intramolecular answered 30/4, 2011 at 9:2 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.