jlj-qmk/1-setup-path-win.bat

15 lines
346 B
Batchfile
Raw Normal View History

@echo off
2016-03-29 20:35:06 +00:00
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
echo.
if NOT ["%errorlevel%"]==["0"] (
2016-03-29 20:35:06 +00:00
echo FAILED. You probably just need to run the script with administrator privileges.
) else (
echo Success!
2016-03-29 20:35:06 +00:00
setx QMK QMK > nul
)
2016-03-29 20:35:06 +00:00
echo.
pause