Last active
September 26, 2015 12:18
-
-
Save shayas/f79855dc334e27fe4df4 to your computer and use it in GitHub Desktop.
This file contains 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
:: | |
:: Description : This command adds a path to the system environemnt Path variable | |
:: This can be done manually in system configurations but if you use it a lot, | |
:: this line of code will help you to automate it | |
:: | |
:: Usage : setenv.bat [PATH] | |
:: Example : setenv.bat "%cd%" (This will add current directory) | |
:: | |
@echo off | |
setx Path "%PATH%%1" /M | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment