我有一个字符串
Approximate round trip times in milli-seconds:
Minimum = 133ms, Maximum = 150ms, Average = 142ms
还有一个 for 循环
for /l %%x in (1, 1, 10) do (
for /f "tokens=7,9" %%a in ('ping -n 10 !ipaddr!') do (
if "x%%a"=="xAverage" (
如果第 7 个标记 ( %a
) 是“平均”,那么我想检查if /I %%b GTR 300
. 但为此我需要去掉ms
in 142ms
( %b
)。我应该怎么办?