@echo off
setlocal enabledelayedexpansion
color 0a
echo 冰蚕温馨提示:操作正在执行,请稍等......
@echo off
:loop
for /f "usebackq skip=1 tokens=3 delims=\" %%i in (`reg query
"HKEY_LOCAL_MACHINE\SOFTWARE\KasperskyLab"`) do set reg_id=%%i
cls
If not "%reg_id%"=="KasperskyLab" Goto exit
for /f "usebackq skip=1 tokens=5 delims=\" %%i in (`reg query
"HKEY_LOCAL_MACHINE\SOFTWARE\KasperskyLab\protected"`) do set reg_id=%%i
goto a1
:a1
If "%reg_id%"=="KasperskyLab" Goto b1
goto c1
:b1
set "reg_path=HKEY_LOCAL_MACHINE\SOFTWARE\KasperskyLab\avp6\environment"
goto start
:c1
for /f "usebackq skip=1 tokens=5 delims=\" %%i in (`reg query
"HKEY_LOCAL_MACHINE\SOFTWARE\KasperskyLab\protected"`) do set reg_id=%%i
set "reg_path=HKEY_LOCAL_MACHINE\SOFTWARE\KasperskyLab\protected\%reg_id%\environment"
goto start
:start
reg export "%reg_path%" temp.reg
cls
for /f "skip=2 tokens=2 delims==" %%i in ('find /i "ProductName" temp.reg') do set a=%%i
set a=%a:"=%
del temp.reg
for /f "skip=4 tokens=3*" %%i in ('reg query "%reg_path%" /v "CompanyName"') do set b=%%i
for /f "skip=4 tokens=3*" %%i in ('reg query "%reg_path%" /v "ProductVersion"') do set c=%%i
for /f "skip=4 tokens=3*" %%i in ('reg query "%reg_path%" /v "Localization"') do set d=%%i
for /f "skip=4 tokens=3*" %%i in ('reg query "%reg_path%" /v "ProductType"') do set e=%%i
for /f "skip=4 tokens=1* delims=:" %%i in ('reg query "%reg_path%" /v "ProductRoot"') do (
set aa=%%i
set bb=%%j
set "bb=!bb:"=!"
if not "!bb:~-1!"=="=" echo.
)
set keyType=%e%%c%
set keyType=%keyType:~0,4%
echo 您安装的卡巴斯基信息如下:
echo 您安装的杀毒软件为: %a%
Echo.
echo 杀毒软件发布公司为: %b%
Echo.
echo 您安装的软件版本为: %c%
Echo.
echo 您安装的软件语言为: %d%
Echo.
echo 您安装的软件类型为: %e%
Echo.
echo 您卡巴斯基安装路径: !aa:~-1!:!bb!
Echo.
echo 应该选用的key 类型: %keyType%
pause
exit