Michael Madigan wrote: > That's the quickest way > > redirect ping > > copy it into a memo field > > Locate "reply from" > > Take everything up to the next ":".
A bit fragile, to say the least. What about when the new version of Windows changes the formatting of ping's output? What about the sysadmins that lock down the system so much that you can't even run ping? The same arguments go for parsing the output of nslookup, but at least with that one you are using a program for what it was intended. Personally, I'd use dig because you can control the output to *only* include the answer, but that doesn't come on Windows by default even though it is pretty de-facto in the non-Windows universe, nslookup being deprecated for about a decade now. mac:~ pmcnett$ dig +short google.com 72.14.207.99 64.233.187.99 64.233.167.99 Ooh, 3 addresses. I guess just go with the first one? Paul _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

