首先:如何制作离线升级包?
本人找了很多来试,都没有成功。
最终找到并测试确定了dos的制作程序,谢谢该作者的代码。代码如下:
Code
@echo off&title DOS资源站 www.cmdos.net
echo.
for /f "tokens=2*" %%i in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\WinRAR.exe" /v "path" ^| findstr /i /c:"REG_SZ"') do set rarpath=%%~dpi
if exist "%rarpath%rar.exe" goto 选择
if exist "%ProgramFiles%\winrar\rar.exe" set rarpath=%ProgramFiles%\winrar\
if not exist "%ProgramFiles%\winrar\rar.exe" goto 退出
@echo off
color a0
echo.
echo.
echo. 卡巴7.0离线升级包制备工具1.0版
echo.
echo. www.cmdos.net
echo.
echo. 感谢支持!
echo.
echo.
:卡巴升级包制备版本选择
@echo off
echo. --------------------卡巴升级包制备版本选择--------------------
echo.
echo.
echo [1] KIS7.0完整升级包制备 [2] KAV7.0完整升级包制备
echo.
echo [3] KIS7.0增量升级包制备 [4] KAV7.0增量升级包制备
echo.
echo --------------------------[5] 退出----------------------------
echo.
:选择
SET Choice=默认1
SET /P Choice= 选择[1],[2],[3],[4],[5]继续(直接回车默认选择1)
IF /I '%Choice%'=='1' goto KIS完整升级包
IF /I '%Choice%'=='2' goto KAV完整升级包
IF /I '%Choice%'=='3' goto KIS增量升级包
IF /I '%Choice%'=='4' goto KAV增量升级包
IF /I '%Choice%'=='5' goto 退出
if /i '%choice%'=='默认1' goto KIS完整升级包
rem echo %choice%
echo.
echo 无效选择。请重新选择
echo.
goto 选择
:KIS完整升级包
echo.
echo. KIS7.0离线完整升级包制作准备完毕
echo.
echo. 请稍等:删除之前用本程序制作的卡巴升级包
rd KIS7.0WZsjb /s/q
echo.请稍等:系统正在建立病毒库目录
md KIS7.0WZsjb
echo.请稍等:正在拷贝第一批文件
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\*.xml" KIS7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\en\retr.dat" KIS7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\as\kis\*.*" KIS7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\aspy\*.*" KIS7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\blst\*.*" KIS7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\pdm\*.*" KIS7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\rt\rt-0707g.xml" KIS7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\upd\*.*" KIS7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\ids\x74\*.*" KIS7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\ids\i387-x74\*.*" KIS7.0WZsjb\ /s/h/y >>k.txt
echo.请稍等:正在拷贝第二批文件
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav7\*.*" KIS7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_aol\*.*" KIS7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_dt\*.*" KIS7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_jp\*.*" KIS7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_kpss\*.*" KIS7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_mais\*.*" KIS7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_pcss\*.*" KIS7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_stg\*.*" KIS7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_xss\*.*" KIS7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_rss\*.*" KIS7.0WZsjb\ /s/h/y >>k.txt
echo.请稍等:正在拷贝第三批文件
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\bases\*.*" KIS7.0WZsjb\ /s/h/y >>k.txt
echo.请稍等:正在删除多余的文件
rd KIS7.0WZsjb\Updater /s/q
rd KIS7.0WZsjb\ForDiff /s/q
echo.
echo. ------------------KIS7.0WZsjb文件夹制备完成------------------------
echo.
echo. [1] KIS7.0WZsjb压缩包制备 [2] 返回卡巴升级包制备版本选择
echo.
echo. ---------------------------[3] 退出--------------------------------
echo.
SET Choice=默认1
SET /P Choice= 选择[1],[2],[3]继续(直接回车默认选择1)
IF /I '%Choice%'=='1' goto KIS7.0WZsjb压缩
IF /I '%Choice%'=='2' goto 卡巴升级包制备版本选择
IF /I '%Choice%'=='3' goto 退出
if /i '%choice%'=='默认1' goto KIS7.0WZsjb压缩
:KIS7.0WZsjb压缩
echo.
echo.稍等,压缩包正在制备
call "%rarpath%rar.exe" a >NUL -s -EP -DF -AG+yyyyMMdd KIS7.0WZsjb.ZIP KIS7.0WZsjb & cls & echo 备份压缩完毕,请查看! & goto start
echo.
echo.
echo. KIS7.0离线完整升级包已成功的制作在当前文件夹KIS7.0WZsjb中
echo.
echo. 感谢使用本程序
echo. 按任意键退出
pause
exit
:KAV完整升级包
echo.
echo. KAV7.0离线完整升级包制作准备完毕
echo.
echo. 请稍等:删除之前用本程序制作的卡巴升级包
rd KAV7.0WZsjb /s/q
echo.请稍等:系统正在建立病毒库目录
md KAV7.0WZsjb
echo.请稍等:正在拷贝第一批文件
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\*.xml" KAV7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\en\retr.dat" KAV7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\as\kis\*.*" KAV7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\aspy\*.*" KAV7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\blst\*.*" KAV7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\pdm\*.*" KAV7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\rt\rt-0707g.xml" KAV7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\upd\*.*" KAV7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\ids\x74\*.*" KAV7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\ids\i387-x74\*.*" KAV7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\ids\x74\*.*" KAV7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\ids\i387-x74\*.*" KAV7.0WZsjb\ /s/h/y >>k.txt
echo.请稍等:正在拷贝第二批文件
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav7\*.*" KAV7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_aol\*.*" KAV7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_dt\*.*" KAV7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_jp\*.*" KAV7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_kpss\*.*" KAV7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_mais\*.*" KAV7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_pcss\*.*" KAV7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_stg\*.*" KAV7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_xss\*.*" KAV7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_rss\*.*" KAV7.0WZsjb\ /s/h/y >>k.txt
echo.请稍等:正在拷贝第三批文件
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\bases\*.*" KAV7.0WZsjb\ /s/h/y >>k.txt
echo.请稍等:正在删除多余的文件
rd KAV7.0WZsjb\Updater /s/q
rd KAV7.0WZsjb\ForDiff /s/q
echo.
echo. ------------------KAV7.0WZsjb文件夹制备完成------------------------
echo.
echo. [1] KAV7.0WZsjb压缩包制备 [2] 返回卡巴升级包制备版本选择
echo.
echo. ---------------------------[3] 退出--------------------------------
echo.
SET Choice=默认1
SET /P Choice= 选择[1],[2],[3]继续(直接回车默认选择1)
IF /I '%Choice%'=='1' goto KAV7.0WZsjb压缩
IF /I '%Choice%'=='2' goto 卡巴升级包制备版本选择
IF /I '%Choice%'=='3' goto 退出
if /i '%choice%'=='默认1' goto KAV7.0WZsjb压缩
:KAV7.0WZsjb压缩
echo.
echo.稍等,压缩包正在制备
call "%rarpath%rar.exe" a >NUL -s -EP -DF -AG+yyyyMMdd KAV7.0WZsjb.ZIP KAV7.0WZsjb & cls & echo 备份压缩完毕,请查看! & goto start
echo.
echo.
echo. KAV7.0离线完整升级包已成功的制作在当前文件夹KAV7.0WZsjb中
echo.
echo. 感谢使用本程序
echo. 按任意键退出
pause
exit
:退出
exit
:KIS增量升级包
@echo off
setlocal EnableDelayedExpansion
echo.
echo. 在下面手动输入你想制备的增量升级包的起始日期
echo.
set Startdate=04-23-2007
set /p Startdate= 格式: 月-日-年 (04-23-2007):
echo.
echo.
echo. KIS7.0离线增量升级包制作准备完毕
echo.
echo. 请稍等:删除之前用本程序制作的卡巴升级包
rd KIS7.0ZLsjb /s/q
echo.请稍等:系统正在建立病毒库目录
md KIS7.0ZLsjb
echo.请稍等:正在拷贝第一批文件
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\*.xml" KIS7.0ZLsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\en\retr.dat" KIS7.0ZLsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\as\kis\*.*" KIS7.0ZLsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\aspy\*.*" KIS7.0ZLsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\blst\*.*" KIS7.0ZLsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\pdm\*.*" KIS7.0ZLsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\rt\rt-0707g.xml" KIS7.0ZLsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\upd\*.*" KIS7.0ZLsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\ids\x74\*.*" KIS7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\ids\i387-x74\*.*" KIS7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
echo.请稍等:正在拷贝第二批文件(有些卡巴版本没有这些,没关系的)
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav7\*.*" KIS7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_aol\*.*" KIS7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_dt\*.*" KIS7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_jp\*.*" KIS7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_kpss\*.*" KIS7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_mais\*.*" KIS7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_pcss\*.*" KIS7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_stg\*.*" KIS7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_xss\*.*" KIS7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_rss\*.*" KIS7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
echo.请稍等:正在拷贝第三批文件
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\bases\*.*" KIS7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
echo.请稍等:正在删除多余的文件
rd KIS7.0ZLsjb\Updater /s/q
rd KIS7.0ZLsjb\ForDiff /s/q
echo.
echo. ------------------KIS7.0ZLsjb文件夹制备完成------------------------
echo.
echo. [1] KIS7.0ZLsjb压缩包制备 [2] 返回卡巴升级包制备版本选择
echo.
echo. ---------------------------[3] 退出--------------------------------
echo.
SET Choice=默认1
SET /P Choice= 选择[1],[2],[3]继续(直接回车默认选择1)
IF /I '%Choice%'=='1' goto KIS7.0ZLsjb压缩
IF /I '%Choice%'=='2' goto 卡巴升级包制备版本选择
IF /I '%Choice%'=='3' goto 退出
if /i '%choice%'=='默认1' goto KIS7.0ZLsjb压缩
:KIS7.0ZLsjb压缩
echo.
echo.稍等,压缩包正在制备
call "%rarpath%rar.exe" a >NUL -EP -DF -AG+yyyyMMdd KIS7.0ZLsjb.ZIP KIS7.0ZLsjb & cls & echo 备份压缩完毕,请查看! & goto start
echo.
echo.
echo. KIS7.0离线增量升级包已成功的制作在当前文件夹KIS7.0ZLsjb中
echo.
echo. 感谢使用本程序
echo. 按任意键退出
pause
exit
:KAV增量升级包
@echo off
setlocal EnableDelayedExpansion
echo.
echo. 在下面手动输入你想制备的增量升级包的起始日期
echo.
set Startdate=04-23-2007
set /p Startdate= 格式: 月-日-年 (04-23-2007):
echo.
echo.
echo. KAV7.0离线增量升级包制作准备完毕
echo.
echo. 请稍等:删除之前用本程序制作的卡巴升级包
rd KAV7.0ZLsjb /s/q
echo.请稍等:系统正在建立病毒库目录
md KAV7.0ZLsjb
echo.请稍等:正在拷贝第一批文件
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\*.xml" KAV7.0ZLsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\en\retr.dat" KAV7.0ZLsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\as\kis\*.*" KAV7.0ZLsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\aspy\*.*" KAV7.0ZLsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\blst\*.*" KAV7.0ZLsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\pdm\*.*" KAV7.0ZLsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\rt\rt-0707g.xml" KAV7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\upd\*.*" KAV7.0ZLsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\ids\x74\*.*" KAV7.0ZLsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\ids\i387-x74\*.*" KAV7.0ZLsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\ids\x74\*.*" KAV7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\ids\i387-x74\*.*" KAV7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
echo.请稍等:正在拷贝第二批文件(有些卡巴版本没有这些,没关系的)
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav7\*.*" KAV7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_aol\*.*" KAV7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_dt\*.*" KAV7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_jp\*.*" KAV7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_kpss\*.*" KAV7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_mais\*.*" KAV7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_pcss\*.*" KAV7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_stg\*.*" KAV7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_xss\*.*" KAV7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_rss\*.*" KAV7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
echo.请稍等:正在拷贝第三批文件
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\bases\*.*" KAV7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
echo.请稍等:正在删除多余的文件
rd KAV7.0ZLsjb\Updater /s/q
rd KAV7.0ZLsjb\ForDiff /s/q
echo.
echo. ------------------KAV7.0ZLsjb文件夹制备完成------------------------
echo.
echo. [1] KAV7.0ZLsjb压缩包制备 [2] 返回卡巴升级包制备版本选择
echo.
echo. ---------------------------[3] 退出--------------------------------
echo.
SET Choice=默认1
SET /P Choice= 选择[1],[2],[3]继续(直接回车默认选择1)
IF /I '%Choice%'=='1' goto KAV7.0ZLsjb压缩
IF /I '%Choice%'=='2' goto 卡巴升级包制备版本选择
IF /I '%Choice%'=='3' goto 退出
if /i '%choice%'=='默认1' goto KAV7.0ZLsjb压缩
:KAV7.0ZLsjb压缩
echo.
echo.稍等,压缩包正在制备
call "%rarpath%rar.exe" a >NUL -EP -DF -AG+yyyyMMdd KAV7.0ZLsjb.ZIP KAV7.0ZLsjb & cls & echo 备份压缩完毕,请查看! & goto start
echo.
echo.
echo. KAV7.0离线增量升级包已成功的制作在当前文件夹KAV7.0ZLsjb中
echo.
echo. 感谢使用本程序
echo. 按任意键退出
pause
exit
:退出
exit
本文来自:DOS资源站(www.cmdos.net) 详细出处参考:http://www.cmdos.net/article/sort03/info-1447.html
@echo off&title DOS资源站 www.cmdos.net
echo.
for /f "tokens=2*" %%i in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\WinRAR.exe" /v "path" ^| findstr /i /c:"REG_SZ"') do set rarpath=%%~dpi
if exist "%rarpath%rar.exe" goto 选择
if exist "%ProgramFiles%\winrar\rar.exe" set rarpath=%ProgramFiles%\winrar\
if not exist "%ProgramFiles%\winrar\rar.exe" goto 退出
@echo off
color a0
echo.
echo.
echo. 卡巴7.0离线升级包制备工具1.0版
echo.
echo. www.cmdos.net
echo.
echo. 感谢支持!
echo.
echo.
:卡巴升级包制备版本选择
@echo off
echo. --------------------卡巴升级包制备版本选择--------------------
echo.
echo.
echo [1] KIS7.0完整升级包制备 [2] KAV7.0完整升级包制备
echo.
echo [3] KIS7.0增量升级包制备 [4] KAV7.0增量升级包制备
echo.
echo --------------------------[5] 退出----------------------------
echo.
:选择
SET Choice=默认1
SET /P Choice= 选择[1],[2],[3],[4],[5]继续(直接回车默认选择1)
IF /I '%Choice%'=='1' goto KIS完整升级包
IF /I '%Choice%'=='2' goto KAV完整升级包
IF /I '%Choice%'=='3' goto KIS增量升级包
IF /I '%Choice%'=='4' goto KAV增量升级包
IF /I '%Choice%'=='5' goto 退出
if /i '%choice%'=='默认1' goto KIS完整升级包
rem echo %choice%
echo.
echo 无效选择。请重新选择
echo.
goto 选择
:KIS完整升级包
echo.
echo. KIS7.0离线完整升级包制作准备完毕
echo.
echo. 请稍等:删除之前用本程序制作的卡巴升级包
rd KIS7.0WZsjb /s/q
echo.请稍等:系统正在建立病毒库目录
md KIS7.0WZsjb
echo.请稍等:正在拷贝第一批文件
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\*.xml" KIS7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\en\retr.dat" KIS7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\as\kis\*.*" KIS7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\aspy\*.*" KIS7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\blst\*.*" KIS7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\pdm\*.*" KIS7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\rt\rt-0707g.xml" KIS7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\upd\*.*" KIS7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\ids\x74\*.*" KIS7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\ids\i387-x74\*.*" KIS7.0WZsjb\ /s/h/y >>k.txt
echo.请稍等:正在拷贝第二批文件
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav7\*.*" KIS7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_aol\*.*" KIS7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_dt\*.*" KIS7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_jp\*.*" KIS7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_kpss\*.*" KIS7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_mais\*.*" KIS7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_pcss\*.*" KIS7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_stg\*.*" KIS7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_xss\*.*" KIS7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_rss\*.*" KIS7.0WZsjb\ /s/h/y >>k.txt
echo.请稍等:正在拷贝第三批文件
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\bases\*.*" KIS7.0WZsjb\ /s/h/y >>k.txt
echo.请稍等:正在删除多余的文件
rd KIS7.0WZsjb\Updater /s/q
rd KIS7.0WZsjb\ForDiff /s/q
echo.
echo. ------------------KIS7.0WZsjb文件夹制备完成------------------------
echo.
echo. [1] KIS7.0WZsjb压缩包制备 [2] 返回卡巴升级包制备版本选择
echo.
echo. ---------------------------[3] 退出--------------------------------
echo.
SET Choice=默认1
SET /P Choice= 选择[1],[2],[3]继续(直接回车默认选择1)
IF /I '%Choice%'=='1' goto KIS7.0WZsjb压缩
IF /I '%Choice%'=='2' goto 卡巴升级包制备版本选择
IF /I '%Choice%'=='3' goto 退出
if /i '%choice%'=='默认1' goto KIS7.0WZsjb压缩
:KIS7.0WZsjb压缩
echo.
echo.稍等,压缩包正在制备
call "%rarpath%rar.exe" a >NUL -s -EP -DF -AG+yyyyMMdd KIS7.0WZsjb.ZIP KIS7.0WZsjb & cls & echo 备份压缩完毕,请查看! & goto start
echo.
echo.
echo. KIS7.0离线完整升级包已成功的制作在当前文件夹KIS7.0WZsjb中
echo.
echo. 感谢使用本程序
echo. 按任意键退出
pause
exit
:KAV完整升级包
echo.
echo. KAV7.0离线完整升级包制作准备完毕
echo.
echo. 请稍等:删除之前用本程序制作的卡巴升级包
rd KAV7.0WZsjb /s/q
echo.请稍等:系统正在建立病毒库目录
md KAV7.0WZsjb
echo.请稍等:正在拷贝第一批文件
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\*.xml" KAV7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\en\retr.dat" KAV7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\as\kis\*.*" KAV7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\aspy\*.*" KAV7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\blst\*.*" KAV7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\pdm\*.*" KAV7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\rt\rt-0707g.xml" KAV7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\upd\*.*" KAV7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\ids\x74\*.*" KAV7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\ids\i387-x74\*.*" KAV7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\ids\x74\*.*" KAV7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\ids\i387-x74\*.*" KAV7.0WZsjb\ /s/h/y >>k.txt
echo.请稍等:正在拷贝第二批文件
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav7\*.*" KAV7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_aol\*.*" KAV7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_dt\*.*" KAV7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_jp\*.*" KAV7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_kpss\*.*" KAV7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_mais\*.*" KAV7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_pcss\*.*" KAV7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_stg\*.*" KAV7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_xss\*.*" KAV7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_rss\*.*" KAV7.0WZsjb\ /s/h/y >>k.txt
echo.请稍等:正在拷贝第三批文件
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\bases\*.*" KAV7.0WZsjb\ /s/h/y >>k.txt
echo.请稍等:正在删除多余的文件
rd KAV7.0WZsjb\Updater /s/q
rd KAV7.0WZsjb\ForDiff /s/q
echo.
echo. ------------------KAV7.0WZsjb文件夹制备完成------------------------
echo.
echo. [1] KAV7.0WZsjb压缩包制备 [2] 返回卡巴升级包制备版本选择
echo.
echo. ---------------------------[3] 退出--------------------------------
echo.
SET Choice=默认1
SET /P Choice= 选择[1],[2],[3]继续(直接回车默认选择1)
IF /I '%Choice%'=='1' goto KAV7.0WZsjb压缩
IF /I '%Choice%'=='2' goto 卡巴升级包制备版本选择
IF /I '%Choice%'=='3' goto 退出
if /i '%choice%'=='默认1' goto KAV7.0WZsjb压缩
:KAV7.0WZsjb压缩
echo.
echo.稍等,压缩包正在制备
call "%rarpath%rar.exe" a >NUL -s -EP -DF -AG+yyyyMMdd KAV7.0WZsjb.ZIP KAV7.0WZsjb & cls & echo 备份压缩完毕,请查看! & goto start
echo.
echo.
echo. KAV7.0离线完整升级包已成功的制作在当前文件夹KAV7.0WZsjb中
echo.
echo. 感谢使用本程序
echo. 按任意键退出
pause
exit
:退出
exit
:KIS增量升级包
@echo off
setlocal EnableDelayedExpansion
echo.
echo. 在下面手动输入你想制备的增量升级包的起始日期
echo.
set Startdate=04-23-2007
set /p Startdate= 格式: 月-日-年 (04-23-2007):
echo.
echo.
echo. KIS7.0离线增量升级包制作准备完毕
echo.
echo. 请稍等:删除之前用本程序制作的卡巴升级包
rd KIS7.0ZLsjb /s/q
echo.请稍等:系统正在建立病毒库目录
md KIS7.0ZLsjb
echo.请稍等:正在拷贝第一批文件
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\*.xml" KIS7.0ZLsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\en\retr.dat" KIS7.0ZLsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\as\kis\*.*" KIS7.0ZLsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\aspy\*.*" KIS7.0ZLsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\blst\*.*" KIS7.0ZLsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\pdm\*.*" KIS7.0ZLsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\rt\rt-0707g.xml" KIS7.0ZLsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\upd\*.*" KIS7.0ZLsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\ids\x74\*.*" KIS7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\ids\i387-x74\*.*" KIS7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
echo.请稍等:正在拷贝第二批文件(有些卡巴版本没有这些,没关系的)
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav7\*.*" KIS7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_aol\*.*" KIS7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_dt\*.*" KIS7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_jp\*.*" KIS7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_kpss\*.*" KIS7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_mais\*.*" KIS7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_pcss\*.*" KIS7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_stg\*.*" KIS7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_xss\*.*" KIS7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_rss\*.*" KIS7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
echo.请稍等:正在拷贝第三批文件
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\bases\*.*" KIS7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
echo.请稍等:正在删除多余的文件
rd KIS7.0ZLsjb\Updater /s/q
rd KIS7.0ZLsjb\ForDiff /s/q
echo.
echo. ------------------KIS7.0ZLsjb文件夹制备完成------------------------
echo.
echo. [1] KIS7.0ZLsjb压缩包制备 [2] 返回卡巴升级包制备版本选择
echo.
echo. ---------------------------[3] 退出--------------------------------
echo.
SET Choice=默认1
SET /P Choice= 选择[1],[2],[3]继续(直接回车默认选择1)
IF /I '%Choice%'=='1' goto KIS7.0ZLsjb压缩
IF /I '%Choice%'=='2' goto 卡巴升级包制备版本选择
IF /I '%Choice%'=='3' goto 退出
if /i '%choice%'=='默认1' goto KIS7.0ZLsjb压缩
:KIS7.0ZLsjb压缩
echo.
echo.稍等,压缩包正在制备
call "%rarpath%rar.exe" a >NUL -EP -DF -AG+yyyyMMdd KIS7.0ZLsjb.ZIP KIS7.0ZLsjb & cls & echo 备份压缩完毕,请查看! & goto start
echo.
echo.
echo. KIS7.0离线增量升级包已成功的制作在当前文件夹KIS7.0ZLsjb中
echo.
echo. 感谢使用本程序
echo. 按任意键退出
pause
exit
:KAV增量升级包
@echo off
setlocal EnableDelayedExpansion
echo.
echo. 在下面手动输入你想制备的增量升级包的起始日期
echo.
set Startdate=04-23-2007
set /p Startdate= 格式: 月-日-年 (04-23-2007):
echo.
echo.
echo. KAV7.0离线增量升级包制作准备完毕
echo.
echo. 请稍等:删除之前用本程序制作的卡巴升级包
rd KAV7.0ZLsjb /s/q
echo.请稍等:系统正在建立病毒库目录
md KAV7.0ZLsjb
echo.请稍等:正在拷贝第一批文件
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\*.xml" KAV7.0ZLsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\en\retr.dat" KAV7.0ZLsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\as\kis\*.*" KAV7.0ZLsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\aspy\*.*" KAV7.0ZLsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\blst\*.*" KAV7.0ZLsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\pdm\*.*" KAV7.0ZLsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\rt\rt-0707g.xml" KAV7.0WZsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\upd\*.*" KAV7.0ZLsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\ids\x74\*.*" KAV7.0ZLsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\ids\i387-x74\*.*" KAV7.0ZLsjb\ /s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\ids\x74\*.*" KAV7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\bases\ids\i387-x74\*.*" KAV7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
echo.请稍等:正在拷贝第二批文件(有些卡巴版本没有这些,没关系的)
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav7\*.*" KAV7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_aol\*.*" KAV7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_dt\*.*" KAV7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_jp\*.*" KAV7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_kpss\*.*" KAV7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_mais\*.*" KAV7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_pcss\*.*" KAV7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_stg\*.*" KAV7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_xss\*.*" KAV7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\Data\Updater\Temporary Files\temporaryFolder\AutoPatches\kav_rss\*.*" KAV7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
echo.请稍等:正在拷贝第三批文件
xcopy "%ALLUSERSPROFILE%\Application Data\Kaspersky Lab\AVP7\bases\*.*" KAV7.0ZLsjb\ /D:%StartDate%/s/h/y >>k.txt
echo.请稍等:正在删除多余的文件
rd KAV7.0ZLsjb\Updater /s/q
rd KAV7.0ZLsjb\ForDiff /s/q
echo.
echo. ------------------KAV7.0ZLsjb文件夹制备完成------------------------
echo.
echo. [1] KAV7.0ZLsjb压缩包制备 [2] 返回卡巴升级包制备版本选择
echo.
echo. ---------------------------[3] 退出--------------------------------
echo.
SET Choice=默认1
SET /P Choice= 选择[1],[2],[3]继续(直接回车默认选择1)
IF /I '%Choice%'=='1' goto KAV7.0ZLsjb压缩
IF /I '%Choice%'=='2' goto 卡巴升级包制备版本选择
IF /I '%Choice%'=='3' goto 退出
if /i '%choice%'=='默认1' goto KAV7.0ZLsjb压缩
:KAV7.0ZLsjb压缩
echo.
echo.稍等,压缩包正在制备
call "%rarpath%rar.exe" a >NUL -EP -DF -AG+yyyyMMdd KAV7.0ZLsjb.ZIP KAV7.0ZLsjb & cls & echo 备份压缩完毕,请查看! & goto start
echo.
echo.
echo. KAV7.0离线增量升级包已成功的制作在当前文件夹KAV7.0ZLsjb中
echo.
echo. 感谢使用本程序
echo. 按任意键退出
pause
exit
:退出
exit
本文来自:DOS资源站(www.cmdos.net) 详细出处参考:http://www.cmdos.net/article/sort03/info-1447.html
本人使用后,KAV7.0完整升级包制备;再用KAV7.0ZLsjb压缩包制备;
但制作出来的是zip格式;
在测试离线升级的时候发现当前不能使用。
追究原因:可能不支持zip升级。
从http://bbs.kafan.cn/viewthread.php?tid=206317得知:
1、打开“卡巴斯基”主窗--选择“设置”--“更新”;
2、选择“自定义“,弹出新对话框窗口;
3、在更新服务器标签中选择”添加“,弹出新对话框窗口;
4、在选择更新源的窗口中浏览找到离线包的指定位置;
5、307版本需要勾选”正在从文件夹或zip压缩文档中更新“;
621版本将升级包解压,将文件夹添加到更新源的路径即可;
6、取消勾选“卡巴斯基实验室更新服务器”(注意取消勾选所有服务器);
7、确定后,启动卡巴斯基的更新。
增量升级方法:
第一次离线升级,请用完整升级包。第二次开始升级后,建议多用增量升级包升级。
如果使用增量升级包升级出现问题,只要在下一次升级时采用完整升级包升级即可。
注:411以后版本的卡巴,将下载离线包后需先解压才能进行离线更新,切记!!
注:如果要在线升级,请重复以上步骤,将离线包更新路径删除,并重新勾选卡巴斯基实验室更新服务器”
-----
那么,我把zip解压,然后配置,发现升级对了。
其他的不说了----为以后kav离线升级准备吧。也许下一秒钟就要用到。