1@echo off 2rem initiate the retry number 3set retryNumber=0 4set maxRetries=6 5set time=0 6 7:DOWNLOAD 8timeout %time% > NUL 9set /a time=2*%time%+1 10appveyor DownloadFile %* 11 12rem problem? 13IF NOT ERRORLEVEL 1 GOTO :EOF 14@echo Oops, appveyor download exited with code %ERRORLEVEL% - let us try again! 15set /a retryNumber=%retryNumber%+1 16IF %reTryNumber% LSS %maxRetries% (GOTO :DOWNLOAD) 17@echo Sorry, we tried downloading the package for %maxRetries% times and all attempts were unsuccessful! 18EXIT /B 1 19