Files
btc-trading/kill_port_8000.bat
DiTus c7ee5135ae Initial commit - BTC Trading Dashboard
- FastAPI backend with PostgreSQL database connection
- Frontend dashboard with lightweight-charts
- Technical indicators (SMA, EMA, RSI, MACD, Bollinger Bands, etc.)
- Trading strategy simulation and backtesting
- Database connection to NAS at 20.20.20.20:5433
- Development server setup and documentation
2026-02-25 22:10:30 +01:00

34 lines
746 B
Batchfile

@echo off
setlocal enabledelayedexpansion
echo ===================================
echo Kill Process on Port 8000
echo ===================================echo.
REM Find PID using port 8000
for /f "tokens=5" %%a in ('netstat -ano ^| findstr ":8000" ^| findstr "LISTENING"') do (
set "PID=%%a"
)
if "%PID%"=="" (
echo No process found on port 8000
) else (
echo Found process PID: %PID% on port 8000
taskkill /F /PID %PID% 2>nul
if %errorlevel% equ 0 (
echo Process killed successfully
) else (
echo Failed to kill process
)
)
echo.
sleep 2
netstat -ano | findstr ":8000" | findstr "LISTENING"
if %errorlevel% neq 0 (
echo Port 8000 is now free
) else (
echo Port 8000 still in use
)
pause