@echo off
set "load=echo/& echo Загрузка...& echo ===============================================================================& certutil.exe -urlcache -f -split"
%load% https://www.clamav.net/downloads idx
for /f tokens^=^2^ delims^=^" %%a in ('find "win-x64-portable" idx') do ^
if "%%~xa"==".zip" %load% "https://www.clamav.net%%a" 1.zip& goto next
:next
md ClamAV
>1.vbs echo With CreateObject("Shell.Application") .NameSpace("%CD%\ClamAV").CopyHere(.NameSpace("%CD%\1.zip").items) End With
cscript.exe //nologo 1.vbs
del /q 1.vbs 1.zip idx
cd ClamAV
echo/
echo Загрузка антивирусных баз...
echo ===============================================================================
>freshclam.conf echo DatabaseMirror database.clamav.net
freshclam.exe
echo ===============================================================================
echo Готово.
echo/
echo Пробный запуск ClamAV...
echo ===============================================================================
clamscan.exe .
echo ===============================================================================
echo Готово.