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
Printable View
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
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.
Downloading source code from WORX seems not to be possible.:confused:
I found this some time ago hope it helps.
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.