-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstop-mysolido.bat
More file actions
35 lines (32 loc) · 814 Bytes
/
Copy pathstop-mysolido.bat
File metadata and controls
35 lines (32 loc) · 814 Bytes
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
@echo off
setlocal enabledelayedexpansion
title MySolido Stoppen
echo.
echo MySolido wordt gestopt...
echo.
REM Stop Flask (Python op poort 5000)
set "found_flask=0"
for /f "tokens=5" %%a in ('netstat -ano ^| findstr ":5000 " ^| findstr "LISTENING"') do (
taskkill /PID %%a /F >nul 2>nul
set "found_flask=1"
)
if "!found_flask!"=="1" (
echo [OK] Flask gestopt
) else (
echo [--] Flask was niet actief
)
REM Stop CSS (Node op poort 3000)
set "found_css=0"
for /f "tokens=5" %%a in ('netstat -ano ^| findstr ":3000 " ^| findstr "LISTENING"') do (
taskkill /PID %%a /F >nul 2>nul
set "found_css=1"
)
if "!found_css!"=="1" (
echo [OK] Solid Server gestopt
) else (
echo [--] Solid Server was niet actief
)
echo.
echo MySolido is gestopt.
echo.
timeout /t 3 /nobreak >nul