@echo off title Stop VieNeu-TTS Web Studio cls echo ===================================================================== echo Stopping VieNeu-TTS Web Studio... echo ===================================================================== echo. :: Find and kill the process listening on port 7860 set found=0 for /f "tokens=5" %%a in ('netstat -ano ^| findstr :7860 ^| findstr LISTENING') do ( echo [+] Found process PID %%a listening on port 7860. Stopping it... taskkill /f /pid %%a >nul 2>&1 set found=1 ) if %found% equ 1 ( echo [OK] VieNeu-TTS Web Studio has been stopped successfully. ) else ( echo [!] No active process found on port 7860. ) echo. pause