Skip to content

Instantly share code, notes, and snippets.

@lucacesari
Created September 16, 2014 14:22
Show Gist options
  • Save lucacesari/d9b5b568fb2bbf0d0f48 to your computer and use it in GitHub Desktop.
Save lucacesari/d9b5b568fb2bbf0d0f48 to your computer and use it in GitHub Desktop.
Add path to Windows %PATH% variable
@echo off
REM If your path contains spaces remember to quote it
setx /m Path "%~1;%PATH%"
echo "%~1 has been added to the Path"
echo "Restart any application that needs to use the modified Path"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment