- @echo off&SetLocal EnableDelayEdexpansion&cd /d "%~dp0"
- :loop
- (tasklist |findstr /i "qqexternal.exe">nul)&&set "flag=1"||set "flag="
- if defined flag mshta vbscript:CreateObject("Wscript.Shell").popup("请注意,有指定的进程出行",3,"提示",vbOKOnly)(window.close)
- nircmd wait 3000
- goto :loop
复制代码 后台运行,可以用nircmd.exe来调用:复制代码 |