qmk-keychron-q3-colemak-dh/1-setup-path-win.bat

15 lines
346 B
Batchfile
Raw Normal View History

@echo off
2016-03-29 22:35:06 +02: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 22:35:06 +02:00
echo FAILED. You probably just need to run the script with administrator privileges.
) else (
echo Success!
2016-03-29 22:35:06 +02:00
setx QMK QMK > nul
)
2016-03-29 22:35:06 +02:00
echo.
pause