windows根据端口杀掉进程
@echo off
set /p port=port:
echo port
for /f "tokens=5" %%a in ('netstat -ano^|findstr %port%') do (taskkill /pid %%a /F)
pause
Loading...
@echo off
set /p port=port:
echo port
for /f "tokens=5" %%a in ('netstat -ano^|findstr %port%') do (taskkill /pid %%a /F)
pause