View Single Post
Old 02-09-2004, 09:52 AM   #4 (permalink)
digby
Crazy
 
Location: Ahh, the lovely South
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.
__________________
mmmm.... pudding

Last edited by digby; 02-09-2004 at 09:57 AM..
digby is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73