@echo off
set port=8088
for /f "tokens=1-5" %%i in ('netstat -ano^|findstr ":%port%"') do taskkill /pid %%m
转载于:https://www.cnblogs.com/lansetuerqi/p/10110788.html
@echo off
set port=8088
for /f "tokens=1-5" %%i in ('netstat -ano^|findstr ":%port%"') do taskkill /pid %%m
转载于:https://www.cnblogs.com/lansetuerqi/p/10110788.html