我想把Ping的结果写入.txt文件 请问改怎么办?

2024年11月23日 03:21
有2个网友回答
网友(1):

ping *.*.*.* >> d:\ping.txt
把ping *.*.*.* IP的结果存到d:\ping.txt文件

示例:ping www.baidu.com >>d:\ping.txt

打开 d:\ping.txt

Pinging www.a.shifen.com [202.108.22.43] with 32 bytes of data:

Reply from 202.108.22.43: bytes=32 time=21ms TTL=50

Reply from 202.108.22.43: bytes=32 time=21ms TTL=50

Reply from 202.108.22.43: bytes=32 time=21ms TTL=50

Reply from 202.108.22.43: bytes=32 time=21ms TTL=50

Ping statistics for 202.108.22.43:

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

Minimum = 21ms, Maximum = 21ms, Average = 21ms

网友(2):

搜一下:我想把Ping的结果写入.txt文件
请问改怎么办?