How do I use Ping Command Using VB???
Can we call Dos Applications and pass ping as arguments ?????
Printable View
How do I use Ping Command Using VB???
Can we call Dos Applications and pass ping as arguments ?????
Have a look at the shellexecute API command
yuk,
all that code seems over the top when you consider the line command prompt you enter to ping.
It would be cool to call up the windows command prompt and have the ping and ip address automatically entered to get the response?
I am writing an application to track PC and software profiles in an organisation.
Ping facility is only needed to confirm the IP of a single pc, the test is only a visual confirmation on screen.
Has anyone found a more simple solution?
I copied the code from the website quoted and successfully set it up in my application to ping the IP address data.
However, I need to ping on the machine name (computer name) as well.
I have no idea how to modify the code to accept this in the text1 field?
Somehow the code validates the field to be an IP address?
The windows command prompt happily accepts the machine name in the ping command.
I am out of my depth with this code, I don't usually use const, type or declare functions.
May need to read up on these.
If you look at link properly (Cimp's Post), you will find one more example that shows you how to Ping using Host Name...
Thanks,
I would have preferred to use the same form to ping either IP or Host.
At least I have the facility.
Maybe one day I will go over the code to understand it? ? ?