@echo off set port=8088 for /f "tokens=1-5" %%i in ('netstat -ano^|findstr ":%port%"') do taskkill /pid %%m
windows下bat脚本关闭某端口服务
发表评论
@echo off set port=8088 for /f "tokens=1-5" %%i in ('netstat -ano^|findstr ":%port%"') do taskkill /pid %%m