复制代码 代码如下:
@echo off
for /f "usebackq" %%i in (`"tasklist|find /c "Serv-U.exe""`) do (
set chkstat=%%i
)
if %chkstat% == 0 (
net start Serv-U
echo ================ >> %date:~0,10%.log
echo %date% %time% check Serv-U service stop >> %date:~0,10%.log
echo restart Serv-U service! >> %date:~0,10%.log
echo ================ >> %date:~0,10%.log
)
新闻热点
疑难解答
图片精选