Skip to content

Instantly share code, notes, and snippets.

@shayas
Last active September 26, 2015 12:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shayas/f79855dc334e27fe4df4 to your computer and use it in GitHub Desktop.
Save shayas/f79855dc334e27fe4df4 to your computer and use it in GitHub Desktop.
::
:: 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