@echo off : tasklist|find /i "xxxx"||start yyyy ping/n 127.1>nul goto 新建 .bat 文件,将其写入文件xxxx这里填程序的文件名yyyy这里填程序的路径10秒扫描一次