10秒监听一次python.exe进程,如何python.exe进程不存在,则打开spider.bat程序。
@echo off tasklist|findstr /i "python.exe" ||start spider.bat ping 127.1 -n 10 >nul 2>nul call %0
@echo off
tasklist|findstr /i "python.exe" ||start spider.bat
ping 127.1 -n 10 >nul 2>nul
call %0
参考资料:
https://www.jb51.net/article/33212.htm