File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 2
2
chcp 65001 > nul
3
3
:: 65001 - UTF-8
4
4
5
+
6
+
5
7
if " %~1 " == " " (
8
+ echo " Checking of already running service instances (see services.msc for more info)"
9
+ echo " Services status check..."
6
10
call :test_service zapret
7
11
call :test_service WinDivert
12
+ echo " Services status check complete!"
8
13
pause
9
14
) else (
10
15
call :test_service " %~1 " " soft"
11
16
)
12
17
18
+
19
+
13
20
exit /b
14
21
15
22
:test_service
@@ -22,7 +29,7 @@ set "ServiceStatus=%ServiceStatus: =%"
22
29
23
30
if " %ServiceStatus% " == " RUNNING" (
24
31
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.
26
33
pause
27
34
) else (
28
35
echo " %ServiceName% " service is RUNNING.
You can’t perform that action at this time.
0 commit comments