怎么用批处理判断系统服务是否在运行,如果系统服务没运行就运行这个系统服务,系统服务运行正常的话就重新启动这个系统服务
è¿é以"Automatic Updates"è¿ä¸ªæå¡ä¸ºä¾ï¼ä½ å¯ä»¥èªå·±æ¹æä½ éè¦çæå¡ï¼æ¹å¤ç代ç å¦ä¸ï¼
::ââ代ââç ââå¼ââå§âââ
@echo off
net start|findstr /i /c:"Automatic Updates">nul&&set k=1||set k=0
if %k%==0 (net start "Automatic Updates") else (
net stop "Automatic Updates"
net start "Automatic Updates")
pause
::Coded By escortmnm from VBSå¢é
::ââ代ââç ââç»ââæâââ
::ââ代ââç ââå¼ââå§âââ
@echo off
net start|findstr /i /c:"Automatic Updates">nul&&set k=1||set k=0
if %k%==0 (net start "Automatic Updates") else (
net stop "Automatic Updates"
net start "Automatic Updates")
pause
::Coded By escortmnm from VBSå¢é
::ââ代ââç ââç»ââæâââ
温馨提示:答案为网友推荐,仅供参考