@echo off sh.exe compile.sh || ( if exist C:\cygwin64 ( C:\cygwin64\bin\sh.exe compile.sh ) else ( if exist C:\cygwin ( C:\cygwin\bin\sh.exe compile.sh ) ) )