Blog.Core/KillPort.bat
2019-05-15 16:16:45 +08:00

7 lines
117 B
Batchfile

@echo off
for /f "tokens=5" %%i in ('netstat -aon ^| findstr ":8081"') do (
set n=%%i
)
taskkill /f /pid %n%
cmd