Skip to content

Commit cd2d802

Browse files
authored
Merge pull request #1978 from EgorWeders/patch-1
Добавляет вывод о проверке статуса сервисов
2 parents 553e967 + 17d7151 commit cd2d802

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

service_status.bat

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,21 @@
22
chcp 65001 > nul
33
:: 65001 - UTF-8
44

5+
6+
57
if "%~1"=="" (
8+
echo "Checking of already running service instances (see services.msc for more info)"
9+
echo "Services status check..."
610
call :test_service zapret
711
call :test_service WinDivert
12+
echo "Services status check complete!"
813
pause
914
) else (
1015
call :test_service "%~1" "soft"
1116
)
1217

18+
19+
1320
exit /b
1421

1522
:test_service
@@ -22,7 +29,7 @@ set "ServiceStatus=%ServiceStatus: =%"
2229

2330
if "%ServiceStatus%"=="RUNNING" (
2431
if "%~2"=="soft" (
25-
echo "%ServiceName%" is ALREADY RUNNING as service! Use "serivce_remove.bat" first if you want to run standalone bat.
32+
echo "%ServiceName%" is ALREADY RUNNING as service! Use "service_remove.bat" first if you want to run standalone bat.
2633
pause
2734
) else (
2835
echo "%ServiceName%" service is RUNNING.

0 commit comments

Comments
 (0)