回复 1# qian119110
在CMD创建里面执行执行:- for /f "tokens=5" %i in ('netstat -ano ^| findstr /c:":4012 "') do @echo %i
复制代码 保存为 test.bat 双击执行- @for /f "tokens=5" %%i in ('netstat -ano ^| findstr /c:":4012 "') do @(if not defined PID set "PID=%%i" & echo %%i & pause)
复制代码
|