复制到文本文件,重命名为bat格式,运行即可
@echo off
netstat -ano | findstr 5037 | findstr LIST 1> tmp.txtfor /f "tokens=5 delims= " %%i in (tmp.txt) do tasklist | findstr %%i
del tmp.txt
pause
版权声明:本文为lgd0325原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。
复制到文本文件,重命名为bat格式,运行即可
@echo off
netstat -ano | findstr 5037 | findstr LIST 1> tmp.txtdel tmp.txt
pause