中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-09 13:58
47,811 topics / 349,895 posts / today 0 new / 48,254 members
DOS批处理 & 脚本技术(批处理室) » A batch file to clear the Kingsoft Antivirus 2008 pass for everyone
Printable Version  1,096 / 3
Floor1 wuhanbin Posted 2008-08-26 16:38
初级用户 Posts 86 Credits 191
Here's a batch file for everyone to clear the Kingsoft Antivirus 2008 pass. In other words, after the 37-day trial period is over, just run this batch file and you can apply for the free trial period again.
@echo off
mode con:cols=29 lines=1
color 70
title Whether to clear the Kingsoft Antivirus pass?
set /p choose=Press Y to clear, press any other key to exit:
if /i "%choose%"=="Y" goto run
exit
:run
tskill uplive
del "%allusersprofile%\Application Data\Kingsoft\KIS\User.DAT"
del "%allusersprofile%\Application Data\Kingsoft\KIS\Log.DAT"
reg DELETE "HKCR\CLSID\{4A27A907-4DBE-438b-B827-573144ACA3DE}" /f
for /f "skip=3 tokens=3,4 delims= " %%a in ('reg QUERY HKCU\Software\KINGSOFT\ANTIVIRUS\ /v ProgramPath') do set path=%%a%%b
start "" "%path%uplive.exe"

[ Last edited by wuhanbin on 2008-8-26 at 05:20 PM ]
Floor2 wuhanbin Posted 2008-08-26 16:40
初级用户 Posts 86 Credits 191
In the second-to-last line, in for /f "skip=3 tokens=3,4 delims= ", there's a TAB key in the middle. The forum can't post it, so just modify it yourself after copying it back!
Floor3 HAT Posted 2008-08-26 16:43
版主 Posts 5,017 Credits 9,023
Add the /i switch to if and it can ignore case, no need to write two lines.
Floor4 wuhanbin Posted 2008-08-26 16:45
初级用户 Posts 86 Credits 191
Thanks
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023