@echo off title eInk Dashboard - Stopping echo Stopping eInk Dashboard Server... :: Stop tailscale funnel tailscale funnel --off 2>nul echo [1/3] Tailscale Funnel stopped. :: Stop dashboard refresh loop powershell -NoProfile -Command "Get-CimInstance Win32_Process | Where-Object { $_.CommandLine -like '*dashboard_loop.ps1*' } | ForEach-Object { Stop-Process -Id $_.ProcessId -Force -ErrorAction SilentlyContinue }" echo [2/3] Hourly dashboard refresh stopped. :: Kill python server on port 8080 for /f "tokens=5" %%a in ('netstat -aon ^| findstr ":8080 " ^| findstr "LISTENING" 2^>nul') do ( taskkill /PID %%a /F >nul 2>&1 ) echo [3/3] File server stopped. echo Done. timeout /t 2 /nobreak >nul