命令:
ping localhost -n 1
得到如下内容:
Pinging asus_z99mseries [127.0.0.1] with 32 bytes of data:
Reply from 127.0.0.1: bytes=32 time<1ms TTL=64
Ping statistics for 127.0.0.1:
Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
现在,我想把 (0% loss) 中括号内的内容提出来,用
for /l "token=2,3 delims=( " %i in ......
或
SET KH=(
for /l "token=2,3 delims=%kh% " %i in .....
都提示错误:
此时不应有 "token=2,3 delims=( "
ping localhost -n 1
得到如下内容:
Pinging asus_z99mseries [127.0.0.1] with 32 bytes of data:
Reply from 127.0.0.1: bytes=32 time<1ms TTL=64
Ping statistics for 127.0.0.1:
Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
现在,我想把 (0% loss) 中括号内的内容提出来,用
for /l "token=2,3 delims=( " %i in ......
或
SET KH=(
for /l "token=2,3 delims=%kh% " %i in .....
都提示错误:
此时不应有 "token=2,3 delims=( "
