Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple Ping 2

Status
Not open for further replies.

webmigit

Programmer
Aug 3, 2001
2,027
US
I haven't started yet because I'm still researching a project I'd like to try involving visual basic & coldfusion.. The CF end I get.. that's easy.. I need to be able to hit a page though in the simplest method possible..

Basically ping it but have the page register the ping so that server side actions take place.

Anyone know the simplest, lightest, way to do this?

ALFII.com
---------------------
If this post answered or helped to answer your question, please reply with such so that forum members with a similar question will know to use this advice.
 
See faq222-607, PING an IP address programatically from within Visual Basic.
 
Thanks.. when I run that code though, I get "Cannot define a public user-defined type within an object module."

ALFII.com
---------------------
If this post answered or helped to answer your question, please reply with such so that forum members with a similar question will know to use this advice.
 
Place all the code from that thread in a module. Now on a for m put a command button and paste the following code.

Private Sub Command1_Click()
Call PingAddress(" "Echo This")
End Sub

This works for me. Your error just means that you either need to change the declares or place the code as is into a module.
 
Or it means that I really had no idea what I was doing.. its been a few years since I used VB and you know.. its not very much like riding a bike.. you do forget..

Thanks to both of you, I'll try that in a little while.

ALFII.com
---------------------
If this post answered or helped to answer your question, please reply with such so that forum members with a similar question will know to use this advice.
 
Yay it worked, but didn't do exactly what I wanted..

I need to be able to hit a file with a syntax like..


Unfortunately when I add a "/..." I get invalid ip address and the such.. is there no way to ping a page?

ALFII.com
---------------------
If this post answered or helped to answer your question, please reply with such so that forum members with a similar question will know to use this advice.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top