Dos 命令关闭窗口
@echo off
setlocal enabledelayedexpansion
REM set /p port=Please entry Port Number:
for /f "tokens=1-5" %%a in ('netstat -ano ^| find "8761"') do (
if "%%e%" == "" (
set pid=%%d
) else (
set pid=%%e
)
echo !pid!
taskkill /f /pid !pid!
)