Лесен начин за показване на списък с пътищата на всички windows services:
1 2 3 4 5 6 7 8 |
@echo off for /f "tokens=2 delims=:" %%a IN ('sc query ^| findstr SERVICE_NAME') do call :ServiceInfo %%a :ServiceInfo echo Service: %1 sc qc %1 | findstr BINARY_PATH_NAME GOTO :EOF :EOF echo Done! |
Лесно може да се модифицира, за да се показва друга информация за service-a като:
1 2 3 4 5 6 7 8 9 10 |
SERVICE_NAME: WebClient TYPE : 20 WIN32_SHARE_PROCESS START_TYPE : 3 DEMAND_START ERROR_CONTROL : 1 NORMAL BINARY_PATH_NAME : C:\Windows\system32\svchost.exe -k LocalService LOAD_ORDER_GROUP : NetworkProvider TAG : 0 DISPLAY_NAME : WebClient DEPENDENCIES : MRxDAV SERVICE_START_NAME : NT AUTHORITY\LocalService |