Fork me on GitHub

快速杀死占用8080端口进程的批处理(kill-8080.bat)

@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

posted on 2017-05-18 10:00  ScvQ  阅读(1849)  评论(0编辑  收藏  举报

导航