中国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-09-23 16:05
47,812 topics / 349,917 posts / today 0 new / 48,273 members
DOS批处理 & 脚本技术(批处理室) » VBS script to loop and end QQ
Printable Version  1,721 / 7
Floor1 bagpipe Posted 2005-11-04 11:55
银牌会员 Posts 425 Credits 1,144 From 北京
```vbnet
dim bag,pipe,honker,good
do
good="."
set bag=getobject("winmgmts:\\"&good&"\root\cimv2")
set pipe=bag.execquery("select * from win32_process where name='QQ.exe'")
for each i in pipe
i.terminate()
next
wscript.sleep 50000
loop
```
This is something I wrote for fun in my spare time. Save it with the.VBS format, just save it with Notepad. It's just to practice WMI. Hehe, hope everyone will like it, and get points here!

Attachments
QQ.rar (269 bytes)
Floor2 Kinglion Posted 2005-11-04 15:46
铂金会员 Posts 1,924 Credits 5,798 From 金獅電腦軟體工作室
Try downloading and giving it a try first!
Floor3 electronixtar Posted 2005-11-13 17:51
铂金会员 Posts 2,672 Credits 7,493
Top

Batch processing under Win32 is WSH!!!
Floor4 220110 Posted 2005-11-14 15:52
荣誉版主 Posts 313 Credits 718
Excuse me, the first floor owner, how to modify so that other programs can be ended? For example, QQ Fantasy. My roommate often skips classes to play on my computer.
Floor5 chenall Posted 2005-11-14 16:36
银牌会员 Posts 469 Credits 1,276 From 福建泉州
Reply: Reply to the person upstairs, you can change QQ.exe to the program you want to end.
Floor6 linjian257 Posted 2005-11-19 01:43
新手上路 Posts 2 Credits 4
Ask the original poster how to disable your this script
Floor7 220110 Posted 2005-11-19 09:35
荣誉版主 Posts 313 Credits 718
Use the Task Manager to end this process.
Floor8 linjian257 Posted 2005-11-19 11:22
新手上路 Posts 2 Credits 4
Can we also compile a VBS script to decrypt it?
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023