Jump to content

How to Ping A Site !!!!

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
kresh7

kresh7

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 661 posts
can someone help me im trying to make a program to ping sites to see there status
i though i can use shell
but i dont know how to use it

my code was something like this
shell "ping -l text2 text1"
do i make somthing wrong cuz i dosent work ?

heres a image of my project
ImageShack - Hosting :: 25834740ov5.jpg

#2
Guest_Jordan_*

Guest_Jordan_*
  • Guests
Use the using System.Net.NetworkInformation namespace

PingReply reply = pingSender.Send(host, timeout, buffer, options);

Example in C#: http://forum.codecal...ng-program.html

#3
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
Well he is using vb6.0 as far as I know. And yes your code is completely wrong, use this:

Shell "ping -l " & Text2.Text & " " & Text1.Text

I am assuming that Text 2 is the size of packets and Text1 is the url

#4
sehzades

sehzades

    Newbie

  • Members
  • Pip
  • 1 posts
thanks

#5
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
You are welcome for sure!