1 @SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
4 SET NEWPATH1="C:\MinGW\msys\1.0\bin"
5 SET NEWPATH2="C:\MinGW\bin"
11 CALL :AddPath %NEWPATH1%
12 CALL :AddPath %NEWPATH2%
17 ECHO %PATH% | FINDSTR /C:"%~1" > nul
19 REG add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /f /v PATH /t REG_SZ /d "%PATH%;%~1" >> add-paths-detail.log
21 ECHO Adding %1 . . . Success! >> add-paths.log
25 ECHO Adding %1 . . . FAILED. Run this script with administrator privileges. >> add-paths.log
28 ECHO Skipping %1 - Already in PATH >> add-paths.log