C:\Users\shf675>netstat -aon |findstr ":8089"
  TCP    0.0.0.0:8089           0.0.0.0:0              LISTENING       16468
16468是pid,想问下如何写个批处理找到8089端口对应的PID,然后杀掉? 
@echo off for /f "tokens=5" %%i in ('netstat -aon ^| findstr ":8089"') do (     set n=%%i ) taskkill /f /pid %n%