May 18, 2016

setting environment variables in a powershell session

The powershell is the new replacement for cmd.exe.

To set variables you have multiple options:


setting the variable ew:

 Set-Item env:ew 'hallo'

or to set in an other way:

PS C:\Users\eer> $env:ANDROID_HOME='C:\DevTools\Android\sdk'
PS C:\Users\eer> $env:target='ewald'