@echo off set net_account=10086 set content=mr.zhou: for /f "delims=" %%i in ('netstat -a^|find /c "192.168.1.253"') do (set net_account=%%i) if %net_account% GEQ 100 set content=%content%网络连接数达 %net_account% . echo %content% 这个是我自己写的 但速度太慢了 有没有快点的方法呢?