@echo offsetlocal enabledelayedexpansionfor /f "eol=* tokens=*" %%i in ('netstat -an -o ^| findstr "8080"') do (set a=%%iset a=!a:~69,10!taskkill /pid !a!)pause>nul结束8080端口的进程