From 7e52c9790a8deec7d757ccf8809ec2e1ef1be021 Mon Sep 17 00:00:00 2001 From: Flowseal Date: Fri, 15 Aug 2025 19:55:19 +0300 Subject: [PATCH] Remove strategy source output if no service installed --- service.bat | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/service.bat b/service.bat index cdb0a3b..6f4a81f 100644 --- a/service.bat +++ b/service.bat @@ -67,7 +67,12 @@ goto menu :service_status cls chcp 437 > nul -for /f "tokens=2*" %%A in ('reg query "HKLM\System\CurrentControlSet\Services\zapret" /v zapret-discord-youtube 2^>nul') do echo Service strategy installed from "%%B" + +sc query "zapret" >nul 2>&1 +if !errorlevel!==0 ( + for /f "tokens=2*" %%A in ('reg query "HKLM\System\CurrentControlSet\Services\zapret" /v zapret-discord-youtube 2^>nul') do echo Service strategy installed from "%%B" +) + call :test_service zapret call :test_service WinDivert echo: