As a result of a script, using McAfee superdat for virus Search (http://blog.csdn.net/scz123/archive/2006/11/02/1362566.aspx), but viral code updates, you have to go to the site to manually download, Build this script and run it using the virus checking feature of FlashGet download to enable automatic checking and downloading of McAfee Superdat updates.
Copy Code code as follows:
@echo off
Echo.
Echo ==================================================
echo FlashGet Downloads A detection script to automatically update McAfee Superdat
Echo Created by Scz 20061102
Echo ==================================================
REM Please use the FlashGet virus detection feature to specify this script
REM primarily uses flashget when downloading an update page
rem lets FLASHGET1.5 download the update page in the above version: "E:\Program Files\flashget\flashget.exe" http://www.mcafee.com/apps/downloads/ Security_updates/superdat.asp?region=cn&segment=enterprise F:\bak\checkMcafee
REM is flashget with virus detection and will run this script after downloading and automatically update Supperdat
REM and then periodically download the page again
REM Downloads to a file's path, filename, and extension
Set FILEPATH=%~DP1
Set FILENAME=%~N1
Set fileext=%~x1
REM FlashGet Path
Set flashget= "E:\Program Files\flashget\flashget.exe"
REM Superdat Storage Path
Set datpath=f:\bak\update\
REM Check ASP page storage path
Set asppath=f:\bak\checkmcafee\
REM string comparison
Echo.
echo Check the downloaded file format and location ...
(Echo-%filepath%-| find/i "-%datpath%-" >nul) && (echo-%filename%-| find/i "-sdat" >nul) && (E Cho-%fileext%-| find/i "-.exe-" >nul) && Goto Checkdat
(Echo-%filepath%-| find/i "-%asppath%-" >nul) && (echo-%filename%%fileext%-| find/i "-superdat.asp-" > NUL) && Goto checkasp
echo Downloads to file:%filepath%%filename%%fileext%, no processing required
Goto END
: Checkdat
Echo.
echo Download to Superdat:%filename%%fileext%, processing ...
CD/D%datpath%
ren%filename%%fileext% mcafee.%filename%%fileext%
echo Delete old version superdat ...
for/f "Skip=1"%%i in (' dir mcafee*.exe/tc/o-d/b 2^>nul ') do (del%%i)
Echo Notification releases McAfee Superdat ...
Start "" mcafee.%filename%%fileext%/e C:\mcafee
echo Superdat finished processing.
Goto END
: checkasp
Echo.
echo Download to superdat.asp ...
Set Url=
Set Sdatname=
CD/D F:\bak\checkMcafee
Echo Analysis superdat.asp ...
for/f "tokens=3,4* delims=<>="%%i in (' Type superdat.asp ^| find ' Simplified/sdat ') do (set url=%%i & Set SDA TNAME=%%J)
Set ver0=%sdatname:sdat=%
Set ver1=%ver0:.exe=%
echo Analysis Results: Supperdat version number is%ver1%
CD/D%datpath%
If exist%sdatname% ren%sdatname% mcafee.%sdatname%
If exist mcafee.%sdatname% (Echo already has the latest version &goto end) Else (echo this version is not downloaded, notify FLASHGET download &start ""%flashget%%url%%dat path%)
Goto END
: End
Echo.
Pause