|
|
楼主 |
发表于 2010-5-14 18:08:26
|
显示全部楼层
- @echo off
- :a
- echo Wscript.Sleep Wscript.Arguments(0) * 1000>Delay.vbs
- Delay.vbs 5
- echo OK!
- echo %date% %time% >>log.txt
- ping 192.168.1.1 -n 1 >>log.txt
- goto a
复制代码 出来的log.txt2010-05-14 星期五 18:05:16.56
Pinging 192.168.1.1 with 32 bytes of data:
Reply from 192.168.1.1: bytes=32 time=1ms TTL=64
Ping statistics for 192.168.1.1:
Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 1ms, Average = 1ms
2010-05-14 星期五 18:05:22.34
Pinging 192.168.1.1 with 32 bytes of data:
Reply from 192.168.1.1: bytes=32 time=1ms TTL=64
Ping statistics for 192.168.1.1:
Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 1ms, Average = 1ms 请教怎样将log.txt文件中的Ping statistics for 192.168.1.1:
Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 1ms, Average = 1ms 这部分去掉!否则生成的文件太大。
还有声音文件正在学习中。
谢谢。 |
|