@echo offtasklist|findstr "loli.exe lilo.exe"if %errorlevel%==0 (msg /W /TIME:300 %username% 有一个程序正在运行) else (goto next):next这里是你的批处理