1-setup-path-win.bat 346 B

1234567891011121314
  1. @echo off
  2. reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /f /v Path /t REG_SZ /d "%path%;C:\MinGW\bin;C:\MinGW\msys\1.0\bin" > nul
  3. echo.
  4. if NOT ["%errorlevel%"]==["0"] (
  5. echo FAILED. You probably just need to run the script with administrator privileges.
  6. ) else (
  7. echo Success!
  8. setx QMK QMK > nul
  9. )
  10. echo.
  11. pause