summaryrefslogtreecommitdiffstats
path: root/1-setup-path-win.bat
diff options
context:
space:
mode:
Diffstat (limited to '1-setup-path-win.bat')
-rw-r--r--1-setup-path-win.bat14
1 files changed, 14 insertions, 0 deletions
diff --git a/1-setup-path-win.bat b/1-setup-path-win.bat
new file mode 100644
index 000000000..6957dbc3f
--- /dev/null
+++ b/1-setup-path-win.bat
@@ -0,0 +1,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