Results 1 to 5 of 5

Thread: Ping from within VB

  1. #1
    MEngrie
    Guest

    Ping from within VB

    Is there a way to ping a network device from within VB? I would like to get back the result of the ping into a VB var.

    Thanks in advance

  2. #2
    Frenzied Member jjortiz's Avatar
    Join Date
    Mar 2001
    Location
    NYC
    Posts
    1,768
    USe ADSI. Go to WROX and do a search for ASP with ADSI. You can ping and do all sort of stuff on a network via VB or Vbscript,ASP. It's Pretty cool. Hope that helps.

  3. #3
    MEngrie
    Guest
    Downloading source code from WORX seems not to be possible.

  4. #4
    rsitogp
    Guest
    I found this some time ago hope it helps.
    Attached Files Attached Files

  5. #5
    Addicted Member csammis's Avatar
    Join Date
    Mar 2001
    Location
    /dev/null
    Posts
    226

    Updated version

    I found an update version of the above code on www.freevbcode.com...it has facilities not only for pinging a host, but wrappers for "gethostbyname" and a few other nifty utilities that VB's Winsock doesn't have.
    Attached Files Attached Files
    Things I've Said:
    "Life's funny like that...elephants can wear frilly lace panties, and Dubya still looks like a monkey in a big chair"
    "Take four goats and strap one to each foot of a llama. Presto, goat-powered llama!"
    "You want to get me to work more, get me a Coke. No? Then deal with inferior garbage, I'm not coding another line and your clients can go to......thanks, I'd love a Coke right about now!"

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