@echo off chcp 65001 >nul 2>&1 echo ============================================ echo CareerBot - Stopping Server echo ============================================ echo. set found=0 :: Find and kill processes listening on port 8000 for /f "tokens=5" %%a in ('netstat -ano ^| findstr ":8000.*LISTENING"') do ( if %%a neq 0 ( echo [*] Killing process PID: %%a taskkill /F /PID %%a >nul 2>&1 set found=1 ) ) if %found%==0 ( echo [*] No CareerBot server process found. ) else ( echo. echo [OK] CareerBot server stopped. ) echo. pause