Results 1 to 1 of 1

Thread: Test ( Ping ) IP Address Class - ICMP

  1. #1

    Thread Starter
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Test ( Ping ) IP Address Class - ICMP

    Found this code out there and re-tooled it into a Class with 5 Public Members:

    VB Code:
    1. Dim ICMP as cls_ICMP
    2. Dim blnValid as Boolean
    3. '
    4. Set ICMP = New cls_ICMP
    5. '
    6. blnValid = ICMP.[B]IsAddressValid [/B]"HostName or IP"
    7. '
    8. blnValid = ICMP.[B]IsAddressAlive [/B]"HostName or IP"
    9. '
    10. MsgBox ICMP.[B]TraceRoute [/B]"HostName or IP", "timeout_val"
    11. '
    12. MsgBox ICMP.[B]AverageResponseTime [/B]"HostName or IP", "chars", "packets", "timeout_val"
    13. '
    14. MsgBox ICMP.[B]SendEcho [/B]"HostName or IP", "chars", "packets", "timeout_val"
    15. '

    Supposedly works on all Windows systems but only tested on XP Pro.
    Attached Files Attached Files
    Last edited by Dave Sell; Apr 4th, 2006 at 03:52 PM. Reason: copy-paste error
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width