@echo off setlocal enabledelayedexpansion set /p port=Your Application port , please: for /f "tokens=1-5" %%a in ('netstat -ano ^| find ":%port%"') do ( if "%%e%" == "" ( set pid=%%d ) else ( set pid=%%e ) echo !pid! taskkill /f /pid !pid! ) pause
Windows查杀端口号脚本
原创wx57ac012361806 ©著作权
©著作权归作者所有:来自51CTO博客作者wx57ac012361806的原创作品,请联系作者获取转载授权,否则将追究法律责任
上一篇:ECS无法连接
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
Windows配置C++的GDAL模块:Visual Studio环境
本文介绍在Visual Studio软件中配置、编译C++ 环境下GDAL库、SQLite环境与PROJ库的详细方法~
C++ GDAL 开发环境 VS Windows -
windows 查看端口号
开始--运行--cmd 进入命令提示符 输入netstat -ano 即可看到所有连接的P
TCP 任务管理器 本地地址 -
windows 端口号占用进程
一、查看特定端口号占用进程1.查询端口占用的进程:netstat -ano | findstr 22222.查询进程:tasklist | findstr 125043.强制关闭
windows 端口号占用进程 端口号对应进程id 强制进程 查询进程 查询端口号