How do you search for a string in a system? I am trying to make a program that does a system ping then returns to you only a portion of the results such as only the amount of packets loss. Any ideas on how to do that? What I had so far was to transfer the results to a text file then read the text file. But after that I am not sure how to extract a certain line from those results. Any help would be greatly appreciated.
np2100
0
Light Poster
Recommended Answers
Jump to PostYou haven't really provided enough specific information.
What do you mean by "system" and "ping"? You've collected some sort of text packet over some socket into a file?
How is the string to be found? Can you search for an exact match? Or would something more flexible be …
All 3 Replies
Duoas
1,025
Postaholic
Featured Poster
np2100
0
Light Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.