自制弹窗拦截器

一个十分简单的bat脚本

如果需要拦截更多弹窗,只需要将第6~8行复制一下并粘贴到:3后面,将所有的SGtool改成要拦截的进程名即可,每添加一个进程,就要将标号加一,我相信你们能看懂

使用方法:新建一个txt文件,将代码粘进去,然后把后缀名改为bat,双击此bat即可

代码:

@echo off
if "%1" == "h" goto begin 
mshta vbscript:createobject("wscript.shell").run("""%~nx0"" h",0)(window.close)&&exit 
:begin 
:1
tasklist|find /i "SGtool.exe"||goto 2
taskkill /f /im SGtool.exe
:2
tasklist|find /i "Sohunews.exe"||goto 3
taskkill /f /im Sohunews.exe
:3
ping 127.0.0.1 -n 5
goto 1
原文地址:https://www.cnblogs.com/Grharris/p/11637748.html