Pinging from ASP...


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Pinging from ASP...

  1. #1
    Matt Markus Guest

    Pinging from ASP...

    Can someone tell me how I might be able to ping a machine, web site, etc...
    from my ASP Page?

    I wrote a little Dll in VB that shells out to a .bat file that pings the
    parameter and sends the results to a text file. I then examine the text file
    for a "Reply From" string. If it's there, it was successful, if not, it
    wasn't. My co-worker doesn't like this idea (not sure why). Is there a more
    graceful way to do this?

    Any help is greatly appreciated!

    Thanks,
    Matt



  2. #2
    Dean Earley Guest

    Re: Pinging from ASP...

    You could look up the ICMP.... functions on the AllAPI site or MSDN

    --
    Dean Earley (dean.earley@icode.co.uk)
    Assistant Developer

    iCode Systems
    "Matt Markus" <matt_markus@hotmail.com> wrote in message news:3acc8766@news.devx.com...
    > Can someone tell me how I might be able to ping a machine, web site, etc...
    > from my ASP Page?
    >
    > I wrote a little Dll in VB that shells out to a .bat file that pings the
    > parameter and sends the results to a text file. I then examine the text file
    > for a "Reply From" string. If it's there, it was successful, if not, it
    > wasn't. My co-worker doesn't like this idea (not sure why). Is there a more
    > graceful way to do this?
    >
    > Any help is greatly appreciated!
    >
    > Thanks,
    > Matt
    >
    >




  3. #3
    David Crowell Guest

    Re: Pinging from ASP...


    If your still willing to use a VB DLL, www.mvps.org/vbnet has some code to
    help you.

    Dave
    www.davidcrowell.com

    > Can someone tell me how I might be able to ping a machine, web site,

    etc...
    > from my ASP Page?





Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center