AVPtool downloader script

No replies
sumguy
Offline
SX VIP
Joined: 2009/12/13

I've used AVPtool on occasion, but was always p'd off with having to use a web interface to download the latest version, so i decided to attempt to script it. You will need two files in the same directory...

wget.exe - download @ http://users.ugent.be/~bpuype/wget/wget.exe
avptool.bat - insert the following code:

@echo off
mkdir "%windir%\temp\AVPtool" 2>nul
cd /d "%windir%\temp\AVPtool"
if exist index.txt (del index.txt /F /Q)
"%~dp0wget.exe" <a href="ftp://devbuilds.kaspersky-labs.com/devbuilds/AVPTool/index.txt<br />
FOR" title="ftp://devbuilds.kaspersky-labs.com/devbuilds/AVPTool/index.txt<br />
FOR">ftp://devbuilds.kaspersky-labs.com/devbuilds/AVPTool/index.txt<br />
FOR</a> /F "usebackq skip=16 tokens=3 delims=    " %%A IN (index.txt) DO SET download=%%A
FOR /F "usebackq tokens=6 delims=/" %%B IN ('%download%') DO SET installexe=%%B
"%~dp0wget.exe" -N -c %download%
start %installexe%
exit

Usage:
- Right-Click batch file and click "Run as Administrator" (Vista/7)
- start scan once application is downloaded

Yeah i know it's pretty basic...meh...it works...I think it's pretty bug-free....enjoy Smile