REM Will ERROR out. Because of the space in "SET" statment inside the if block if exist "%ProgramFiles(x86)%\Android\android-sdk\tools\android.bat" ( set ANDROID_HOME=%ProgramFiles(x86)%\Android\android-sdk goto :eof )