windows下监控并重启某个进程
有时会遇到某个服务突然挂掉,又不能时时监控的情况,写了一个windows下监控服务的进程,如果进程不存在,重启这个服务,已经过实际环境测试。
下载地址
用户评论
就是批处理,对我没啥用。。。。 :RESTART tasklist /FI "username eq administrator" | find /C "soffice.exe" > temp.txt set /p num= < temp.txt del /F temp.txt echo %num% if "%num%" == "0" start /D " C:\Program Files (x86)\OpenOffice.org 3\program" soffice
不错,挺好用的,稍微改改就能用