RetroShare/build_scripts/Windows-msys2/tools/download-file.bat
hunbernd 81a7d5a365 Removed winhttpjs and wget
Winhhtpjs triggered some antivirus software
Use powershell for downloads
2020-05-23 17:57:59 +02:00

13 lines
247 B
Batchfile

:: Usage:
:: call download-file.bat url file
if "%~2"=="" (
echo.
echo Parameter error.
exit /B 1
)
powershell -NoLogo -NoProfile -Command (New-Object System.Net.WebClient).DownloadFile(\""%~1\"", \""%~2\"")
exit /B %ERRORLEVEL%