标签:端口 port off got find out for netstat use
@echo off
::port为需要去绑定端口
set port=8888
for /f "tokens=5 delims= " %%a in (‘netstat -ano ^|findstr /c "%port%"‘) do (
echo pid=%%a
taskkill /f /pid %%a
GOTO :OUTFOR
)
:OUTFOR
pause
标签:端口 port off got find out for netstat use
原文地址:http://www.cnblogs.com/chairmanming/p/6886621.html