How to use ENV vars in Windows Powershell
You're using the Windows Powershell but you miss %HOMEPATH% ?
Use $env:HOMEPATH
e.g.
PS C:\> echo $env:HOMEPATH
\Users\arnaud
Works for any environment variable of course.
List ENV with: Get-ChildItem -path env:
(just type get-c + [TAB])
Written by Arnaud Meuret
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Powershell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#