]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Add script to setup the PATH variable on Windows
authorNoah Andrews <NoahAndrews@users.noreply.github.com>
Fri, 26 Feb 2016 04:53:44 +0000 (23:53 -0500)
committerNoah Andrews <NoahAndrews@users.noreply.github.com>
Fri, 26 Feb 2016 04:53:44 +0000 (23:53 -0500)
setup-path-win.bat [new file with mode: 0644]

diff --git a/setup-path-win.bat b/setup-path-win.bat
new file mode 100644 (file)
index 0000000..4fbf9a8
--- /dev/null
@@ -0,0 +1,9 @@
+@echo off
+setx /M path "%PATH%;C:\MinGW\bin" > nul 2>&1
+if NOT ["%errorlevel%"]==["0"] (
+       echo FAILED. Rerun with administrator privileges.
+       pause
+) else (
+       echo Success!
+       pause
+)