summaryrefslogtreecommitdiffstats
path: root/1-setup-path-win.bat
blob: 6957dbc3f49a00c7cd68bb9d659ccb0d9d349693 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
@echo off

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"] (
	echo FAILED. You probably just need to run the script with administrator privileges.
) else (
	echo Success!
	setx QMK QMK > nul
)

echo.
pause