标签:占用 stat for color net kill pre token echo
@echo off
setlocal enabledelayedexpansion
for /f "delims= tokens=1" %%i in (‘netstat -aon ^| findstr "8080"‘) do (
set a=%%i
goto js
)
:js
taskkill /f /pid "!a:~71,5!"
pause>nul
快速杀死占用8080端口进程的批处理(kill-8080.bat)
标签:占用 stat for color net kill pre token echo
原文地址:http://www.cnblogs.com/ScvQ/p/6871897.html