1.

Solve : How to send just one line from a ping result to a log-file??

Answer»

How do i send just one line containing one specific word, let SAY "TTL" from a ping result to a LOG-file?
I tried :
:start
ping get.no -n 1 | find /V "TTL" >> test.log
goto start

But that just send the number of lines containing "TTL", here "1"

Lars H.Using /V will not display any lines that contain TTL.

Are you wanting the result of TTL output to the log file?What I want is to send the underlined part of the ping result to the log-file.

Squashman gave you the clue. Remove the /V

find /? will show you the help and it should be where you check when something isn't quite right.

/V means Void in ENGLISH, which essentially means 'without' in this context. So you were making find.exe print all lines without TTLThanks a lot, the omittance of the /v switch was the solution. Quote from: Lars H. on December 11, 2013, 02:46:05 AM

omittance

Omission
Sorry!

Proud to be a NORWEGIAN!


Discussion

No Comment Found