Explorar o código

Add script to setup the PATH variable on Windows

Noah Andrews %!s(int64=9) %!d(string=hai) anos
pai
achega
4ad96c60ab
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  1. 9 0
      setup-path-win.bat

+ 9 - 0
setup-path-win.bat

@@ -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
+)