PDA

Click to See Complete Forum and Search --> : Ping from within VB


MEngrie
May 28th, 2001, 07:52 AM
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

jjortiz
May 28th, 2001, 07:34 PM
USe ADSI. Go to WROX (http://www.wrox.com) 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.

MEngrie
May 29th, 2001, 05:47 AM
Downloading source code from WORX seems not to be possible.:confused:

rsitogp
May 29th, 2001, 06:00 AM
I found this some time ago hope it helps.

csammis
May 29th, 2001, 08:05 AM
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.