mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-15 02:44:20 -05:00
81a7d5a365
Winhhtpjs triggered some antivirus software Use powershell for downloads
13 lines
247 B
Batchfile
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%
|