
CODE: [Copy to clipboard]局限:服务名中不能含有半角空格@echo off&setlocal ENABLEDELAYEDEXPANSION
for /f "tokens=1-3" %%a in (a.txt) do (
if /i "%%c" equ "RUNNING" (
set /a sum+=1
set "#!sum!:=%%a"
)
)
echo.The Services below are runing(total:!sum!):
set #
pause
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |