Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在制作一个批处理文件,以查找 ping -t 的平均时间。如何从 ping 输出中提取时间。
从下面的代码中你会得到一些提示。
SET CONNECT=YES PING google.com | FIND "time=" > NUL IF ERRORLEVEL 1 SET CONNECT=NO ECHO You have %CONNECT% active connection to the Internet