1 %SystemDrive%\cygwin\bin\which.exe bash 2 if errorlevel 1 set PATH=%SystemDrive%\cygwin\bin;%PATH% 3 cmd /c 4 if exist "%CONFIGURATIONBUILDDIR%\buildfailed" grep XX%PROJECTNAME%XX "%CONFIGURATIONBUILDDIR%\buildfailed" 5 if errorlevel 1 exit 1 6 echo XX%PROJECTNAME%XX > "%CONFIGURATIONBUILDDIR%\buildfailed" 7