Files
Live_RC/windows/stop_all.bat
2026-03-14 09:51:35 +01:00

12 lines
259 B
Batchfile

@echo off
setlocal
for /f "tokens=5" %%p in ('netstat -ano ^| findstr ":8081" ^| findstr "LISTENING"') do (
taskkill /PID %%p /F >nul 2>&1
)
taskkill /IM ammc-amb.exe /F >nul 2>&1
echo [OK] Stopped backend on :8081 and ammc-amb.exe (if running)
endlocal