VBS开机杀掉弹窗广告
工作原理:开机就检测iexplore进程,有就结束并退出,没有则一直检测。快到顾客根本看不见弹窗使用方法:代码存为.VBS开机启动即可(要在弹出广告之前启动)开机启动检测10秒种。10秒之后也没有指定进程就退出!时间自己改!set ws=CreateObject("WScript.Shell")Set bag = Getobject("winmgmts:\\.")
dim a
a=0
do
Set pipe = bag.InstancesOf("Win32_Process")
For Each id In pipe
if instr(1,LCase(id.name),"iexplore")<>0 then
ws.run"ntsd -c q -p "&id.ProcessID,0
WScript.Quit
end if
next
if a=100 then exit do
a =a +1
wscript.sleep 100
loop
页:
[1]