Solved

Writing a Ping Routine

Posted on 2001-08-18
4
258 Views
Last Modified: 2008-03-10
Can someone post sample code for a ping application?  I want to include a "site status" for an app I am trying to write and want to be able to ping that site via vb and determine the number of lost packets (say out of 10).  

Thanks
0
Comment
Question by:Lee W, MVP
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 14

Expert Comment

by:wsh2
ID: 6402786
<pinging> this question (listening).. <smile>
0
 
LVL 28

Accepted Solution

by:
Ark earned 150 total points
ID: 6402851
Hi
http://www.mvps.org/vbnet/code/network/ping.htm
>>How to Ping an IP Address Using Visual Basic<<

http://www.mvps.org/vbnet/code/network/pingbyhostname.htm
>>How to Ping an IP Address By Host Name<<

Cheers
0
 
LVL 96

Author Comment

by:Lee W, MVP
ID: 6402903
vinnyd79 - your answer was quite similar - the reason I chose Ark's comment as the answer though is his example was better documented, in my opinion.

However, though it wasn't part of my question, the Traceroute functionality will most likely come in handy someday AND you did give an applicable answer.  So I have created a "points question" for you - http://www.experts-exchange.com/jsp/qManageQuestion.jsp?ta=visualbasic&qid=20170637
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question