Created
March 1, 2017 15:09
-
-
Save jcefoli/8af7aafe9d409b3d5004e3bf7374a9a3 to your computer and use it in GitHub Desktop.
Permanently Add Directory to User Path ($env:path)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#In this example, we're adding C:\bin. I hard coded the path to make it a powershell one liner | |
[Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\bin", [EnvironmentVariableTarget]::User) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment