Исправление дублирования имён сервисов в проверке на VPN (#7369)

This commit is contained in:
harmonicano
2025-12-24 11:07:18 +00:00
committed by GitHub
parent 4f7d1bb9d0
commit 5a2b7d5e52

View File

@@ -473,9 +473,10 @@ if not exist "%BIN_PATH%\*.sys" (
echo:
:: VPN
set "VPN_SERVICES="
sc query | findstr /I "VPN" > nul
if !errorlevel!==0 (
for /f "tokens=2 delims=:" %%A in ('sc query ^|^ findstr /I "VPN"') do (
for /f "tokens=2 delims=:" %%A in ('sc query ^| findstr /I "VPN"') do (
if not defined VPN_SERVICES (
set "VPN_SERVICES=!VPN_SERVICES!%%A"
) else (