-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck_services.bat
More file actions
41 lines (35 loc) · 1.02 KB
/
check_services.bat
File metadata and controls
41 lines (35 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
@echo off
REM Check if Scanner Services are running
echo =====================================
echo SCANNER SERVICES STATUS
echo =====================================
echo.
echo [INFO] Checking scanner_helper.exe...
tasklist /FI "IMAGENAME eq scanner_helper.exe" 2>NUL | find /I /N "scanner_helper.exe">NUL
if "%ERRORLEVEL%"=="0" (
echo [RUNNING] scanner_helper.exe is running
tasklist /FI "IMAGENAME eq scanner_helper.exe" /FO TABLE
) else (
echo [STOPPED] scanner_helper.exe is NOT running
)
echo.
echo [INFO] Checking php.exe...
tasklist /FI "IMAGENAME eq php.exe" 2>NUL | find /I /N "php.exe">NUL
if "%ERRORLEVEL%"=="0" (
echo [RUNNING] php.exe is running
tasklist /FI "IMAGENAME eq php.exe" /FO TABLE
) else (
echo [STOPPED] php.exe is NOT running
)
echo.
echo [INFO] Checking ports...
echo.
netstat -ano | findstr ":8765"
netstat -ano | findstr ":8080"
echo.
echo =====================================
echo.
echo To stop services: stop_services.bat
echo To start services: start_all_hidden.vbs
echo.
pause