Added winws.exe check for service_status

This commit is contained in:
Flowseal 2025-04-26 21:00:09 +03:00
parent 127a19effe
commit a7edae47bc

View File

@ -1,12 +1,18 @@
@echo off @echo off
setlocal EnableDelayedExpansion
chcp 65001 > nul chcp 65001 > nul
:: 65001 - UTF-8 :: 65001 - UTF-8
if "%~1"=="" ( if "%~1"=="" (
echo Checking already running service instances, see services.msc for more info echo Checking services and tasks...
call :test_service zapret call :test_service zapret
call :test_service WinDivert call :test_service WinDivert
echo Services status check complete! tasklist /FI "IMAGENAME eq winws.exe" | find /I "winws.exe" > nul
if !errorlevel!==0 (
echo Bypass is ACTIVE
) else (
echo Bypass NOT FOUND
)
pause pause
) else ( ) else (
call :test_service "%~1" "soft" call :test_service "%~1" "soft"
@ -24,7 +30,7 @@ set "ServiceStatus=%ServiceStatus: =%"
if "%ServiceStatus%"=="RUNNING" ( if "%ServiceStatus%"=="RUNNING" (
if "%~2"=="soft" ( if "%~2"=="soft" (
echo "%ServiceName%" is ALREADY RUNNING as service! Use "service_remove.bat" first if you want to run standalone bat. echo "%ServiceName%" is ALREADY RUNNING as service, use "service_remove.bat" first if you want to run standalone bat.
pause pause
) else ( ) else (
echo "%ServiceName%" service is RUNNING. echo "%ServiceName%" service is RUNNING.