@echo off
set Program="firefox.exe"
:begin
tasklist -v | findstr %Program% > NUL
if ErrorLevel 1 (
echo "no exist"
exit
) else (
echo "exist"
ping 127.0.0.1 -n 10 >nul
)
goto begin
循环10秒检测是否存在某进程
最新推荐文章于 2022-08-31 14:14:47 发布