ok, I played with it some, and it worked for me with Win 2k.
Code:
C:\temp>ping 192.168.0.1 >> ping.txt
C:\temp>type ping.txt
Pinging 192.168.0.1 with 32 bytes of data:
Reply from 192.168.0.1: bytes=32 time<10ms TTL=64
Reply from 192.168.0.1: bytes=32 time<10ms TTL=64
Reply from 192.168.0.1: bytes=32 time<10ms TTL=64
Reply from 192.168.0.1: bytes=32 time<10ms TTL=64
Ping statistics for 192.168.0.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
As for your echo line # commands, that won't work, because DOS (I believe) doesn't define the lines that way. You are telling it to add the text string "Line 1" to the file.
And one clarification:
">" replaces the text in a file
">>" appends the text
hope this helps.