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