::手动下载病毒库包更新kav7 s11ss@www.cn-dos.net 2008-3-11
@echo off
echo 1.打开卡巴斯基程序主界面,点击左下角的“设置”然后点击“服务”将“启用自我保护”前面的钩去掉。
:s
set/p s=OK?(y/n)
if /i "%s%" equ "N" goto :s
echo 2.下载av-i386-cumul.zip和av-i386-daily.zip这两个病毒库包到c盘根目录下
echo ftp://ftp.kaspersky.com/zips/av-i386-cumul.zip
echo ftp://ftp.kaspersky.com/zips/av-i386-daily.zip
set/p s=已经用下载软件下完了?(y/n)
if /i "%s%" equ "y" goto :s3
ping www.baidu.com -n 2 >nul||(echo 网络未连通!&pause>nul&exit/b)
set/p s=请下载文件av-i386-cumul.zip到c盘根目录下,并请不要改名,确定吗?(y/n)
if /i "%s%" equ "N" exit/b
explorer ftp://ftp.kaspersky.com/zips/av-i386-cumul.zip
:s1
set/p s=请确认av-i386-cumul.zip已经下载完毕(y/n)
if /i "%s%" equ "N" goto :s1
set/p s=请下载文件av-i386-daily.zip到c盘根目录下,并请不要改名,确定吗?(y/n)
if /i "%s%" equ "N" exit/b
explorer ftp://ftp.kaspersky.com/zips/av-i386-daily.zip
:s2
set/p s=请确认av-i386-daily.zip已经下载完毕(y/n)
if /i "%s%" equ "N" goto :s2
:s3
echo 3.以覆盖方式先解压缩av-i386-cumul.zip后解压缩av-i386-daily.zip
if not exist c:\av-i386-cumul.zip echo 不存在c:\av-i386-cumul.zip&pause>nul&exit/b
if not exist c:\av-i386-daily.zip echo 不存在c:\av-i386-daily.zip&pause>nul&exit/b
for /f "skip=4 tokens=1,2*" %%a in ('reg query hklm\software\classes\.rar\shellnew') do set p=%%c
set winrar="%p:rarnew.dat=winrar.exe%"
if not exist %winrar% echo 不存在WinRar.exe,请自行解压!&pause>nul&exit/b
for /f "skip=4 tokens=1,2*" %%a in ('reg query HKEY_LOCAL_MACHINE\SOFTWARE\KasperskyLab\protected\AVP7\environment /v dataroot') do set kav7="%%c\Bases"
%winrar% x -o+ c:\av-i386-cumul.zip %kav7%
%winrar% x -o+ c:\av-i386-daily.zip %kav7%
echo 4.用鼠标右键点击右下角的卡巴斯基图标,选择“退出”,然后再从“开始”菜单-“程序”中将卡巴斯基程序运行起来。
pause>nul
echo 5.打开卡巴斯基程序主界面,点击左下角的“设置”然后点击“服务”将“启用自我保护”前面的钩打上就可以了。
pause>nul
exit/b
参考网络文章:
1.打开卡巴斯基程序主界面,点击左下角的“设置”然后点击“服务”将“启用自我保护”前面的钩去掉。
2.点击以下两个链接,下载av-i386-cumul.zip和av-i386-daily.zip这两个病毒库包
ftp://ftp.kaspersky.com/zips/av-i386-cumul.zip
ftp://ftp.kaspersky.com/zips/av-i386-daily.zip
3.将下载的两个压缩包依次解压缩到以下目录中C:\Documents and Settings\All Users\Application Data\Kaspersky Lab\AVP7\Bases,并覆盖其中的文件,(注:一定要先解压缩av-i386-cumul.zip后解压缩av-i386-daily.zip)
4.用鼠标右键点击右下角的卡巴斯基图标,选择“退出”,然后再从“开始”菜单-“程序”中将卡巴斯基程序运行起来。
5.打开卡巴斯基程序主界面,点击左下角的“设置”然后点击“服务”将“启用自我保护”前面的钩打上就可以了。
::Manually download virus database package to update kav7 s11ss@www.cn-dos.net 2008-3-11
@echo off
echo 1. Open the main interface of Kaspersky program, click "Settings" in the lower left corner, then click "Services" and remove the check mark in front of "Enable Self-Protection".
:s
set/p s=OK?(y/n)
if /i "%s%" equ "N" goto :s
echo 2. Download the two virus database packages av-i386-cumul.zip and av-i386-daily.zip to the root directory of drive C
echo ftp://ftp.kaspersky.com/zips/av-i386-cumul.zip
echo ftp://ftp.kaspersky.com/zips/av-i386-daily.zip
set/p s=Have you finished downloading with the download software? (y/n)
if /i "%s%" equ "y" goto :s3
ping www.baidu.com -n 2 >nul||(echo Network is not connected!&pause>nul&exit/b)
set/p s=Please download the file av-i386-cumul.zip to the root directory of drive C and do not rename it. Is it confirmed? (y/n)
if /i "%s%" equ "N" exit/b
explorer ftp://ftp.kaspersky.com/zips/av-i386-cumul.zip
:s1
set/p s=Please confirm that av-i386-cumul.zip has been downloaded completely (y/n)
if /i "%s%" equ "N" goto :s1
set/p s=Please download the file av-i386-daily.zip to the root directory of drive C and do not rename it. Is it confirmed? (y/n)
if /i "%s%" equ "N" exit/b
explorer ftp://ftp.kaspersky.com/zips/av-i386-daily.zip
:s2
set/p s=Please confirm that av-i386-daily.zip has been downloaded completely (y/n)
if /i "%s%" equ "N" goto :s2
:s3
echo 3. First unzip av-i386-cumul.zip in overwrite mode, then unzip av-i386-daily.zip
if not exist c:\av-i386-cumul.zip echo c:\av-i386-cumul.zip does not exist&pause>nul&exit/b
if not exist c:\av-i386-daily.zip echo c:\av-i386-daily.zip does not exist&pause>nul&exit/b
for /f "skip=4 tokens=1,2*" %%a in ('reg query hklm\software\classes\.rar\shellnew') do set p=%%c
set winrar="%p:rarnew.dat=winrar.exe%"
if not exist %winrar% echo WinRar.exe does not exist, please unzip it yourself!&pause>nul&exit/b
for /f "skip=4 tokens=1,2*" %%a in ('reg query HKEY_LOCAL_MACHINE\SOFTWARE\KasperskyLab\protected\AVP7\environment /v dataroot') do set kav7="%%c\Bases"
%winrar% x -o+ c:\av-i386-cumul.zip %kav7%
%winrar% x -o+ c:\av-i386-daily.zip %kav7%
echo 4. Right-click the Kaspersky icon in the lower right corner, select "Exit", then run the Kaspersky program from "Start" menu - "Programs".
pause>nul
echo 5. Open the main interface of Kaspersky program, click "Settings" in the lower left corner, then click "Services" and put a check mark in front of "Enable Self-Protection".
pause>nul
exit/b
Reference network article:
1. Open the main interface of Kaspersky program, click "Settings" in the lower left corner, then click "Services" and remove the check mark in front of "Enable Self-Protection".
2. Click the following two links to download the two virus database packages av-i386-cumul.zip and av-i386-daily.zip
ftp://ftp.kaspersky.com/zips/av-i386-cumul.zip
ftp://ftp.kaspersky.com/zips/av-i386-daily.zip
3. Unzip the downloaded two compressed packages in sequence to the following directory C:\Documents and Settings\All Users\Application Data\Kaspersky Lab\AVP7\Bases, and overwrite the files in it. (Note: Be sure to unzip av-i386-cumul.zip first, then unzip av-i386-daily.zip)
4. Right-click the Kaspersky icon in the lower right corner, select "Exit", then run the Kaspersky program from "Start" menu - "Programs".
5. Open the main interface of Kaspersky program, click "Settings" in the lower left corner, then click "Services" and put a check mark in front of "Enable Self-Protection".