By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,705 Members | 1,815 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,705 IT Pros & Developers. It's quick & easy.

Any way to get a ping reply programmatically?

P: n/a
Hello,

Is there a way to get a ping return in Access / VB? I'd like to be able to
quickly tell if a local machine OR a website exists? Most of the hits I get
on google are with regard to using Access as a back end for websites. Any
direction would be greatly appreciated.

Thanks!
May 3 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Rico,

there's code at VBNet to do this.

http://vbnet.mvps.org/code/internet/ping.htm

When I used it, I compared the return to whatever success was defined
as.

then you can just write the results to a table. (Essentially, open an
updateable recordset of IP addresses, then pass the IP address to the
Ping function and then write the result back to the table.

May 3 '06 #2

P: n/a
Thanks, that code works very well, but I don't always know the IP Address
that will be queried. I do know the server name though and the IP Address
may change. Have you ever used any code that would query a DNS server or be
able to extract the IP Address from the FQDN?

<pi********@hotmail.com> wrote in message
news:11**********************@v46g2000cwv.googlegr oups.com...
Rico,

there's code at VBNet to do this.

http://vbnet.mvps.org/code/internet/ping.htm

When I used it, I compared the return to whatever success was defined
as.

then you can just write the results to a table. (Essentially, open an
updateable recordset of IP addresses, then pass the IP address to the
Ping function and then write the result back to the table.

May 3 '06 #3

P: n/a
Ah! Never mind, found what I'm looking for. Thanks!

"Rico" <me@you.com> wrote in message news:lg96g.114100$P01.26771@pd7tw3no...
Thanks, that code works very well, but I don't always know the IP Address
that will be queried. I do know the server name though and the IP Address
may change. Have you ever used any code that would query a DNS server or
be able to extract the IP Address from the FQDN?

<pi********@hotmail.com> wrote in message
news:11**********************@v46g2000cwv.googlegr oups.com...
Rico,

there's code at VBNet to do this.

http://vbnet.mvps.org/code/internet/ping.htm

When I used it, I compared the return to whatever success was defined
as.

then you can just write the results to a table. (Essentially, open an
updateable recordset of IP addresses, then pass the IP address to the
Ping function and then write the result back to the table.


May 3 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.