命令查看windows系统服务的属性信息

windows系统服务的属性信息,可以用命令很简单的查看。
----------------------------------------------------------------
@echo off
sc query|find "SERVICE_NAME" >servicelist.txt
for /f "tokens=2 delims=: " %%i in (servicelist.txt) do (
for %%j in (SERVICE_NAME,DISPLAY_NAME,PATH_NAME) do sc qc %%i|find "%%j" >>serviceinfo.txt
echo ------------------------------- >>serviceinfo.txt
)

你可能感兴趣的:(find,sc,for)