here is how to ping a machine;
http://vbnet.mvps.org/inde
Main Topics
Browse All Topicshey experts!
im looking for a script thats can add a computer and ping the ipaddress to check if its up
webserver1 192.168.5.1 OK(green)
webserver2 192.168.5.2 Down(Red)
does anyone have something writed down ? :)
need answers fast
Thx
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
here is how to ping a machine;
http://vbnet.mvps.org/inde
Create an access Database with coputer_id ( autonumber)
computer Name (text)
ComputerIP (text)
create an array of two command buttons
create an array of two text boxes
Here is the form load event
Private Sub Form_Load()
With DataEnvironment1
Load DataEnvironment1
Dim c As Integer
c = 8
Dim l As Integer
Dim tr As Integer
If .rsadd.State <> 0 Then .rsadd.Close
.rsadd.Open
tr = .rsadd.RecordCount
Dim h As Integer
h = 200
l = 300
Dim txtintnextindex As Integer
Dim intnextIndex As Integer
Do Until intnextIndex = tr
txtintnextindex = Text1.UBound + 1
intnextIndex = Command1.UBound + 1
Load Text1(txtintnextindex)
Load Command1(intnextIndex)
Command1(intnextIndex).ZOr
Text1(txtintnextindex).ZOr
Command1(intnextIndex).Vis
Command1(intnextIndex).Top
Command1(intnextIndex).Lef
Command1(intnextIndex).Cap
Text1(txtintnextindex).Tex
.rsadd.MoveNext
h = h + 700
If .rsadd.AbsolutePosition = c Then
l = l + 1700
h = 200
c = c + 8
End If
Command1(0).Visible = False
Text1(0).Visible = False
Loop
'Label1.Caption = tr
End With
Exit Sub
ce:
Form2.Caption = " Now displaying " & Space(1) & tr & " different addresses"
Form2.BackColor = &HC0FFFF
Here is the command1 code
Private Sub Command1_Click(Index As Integer)
Dim ti As Integer
ti = Index
Dim ad As String
ad = Text1(ti).Text
Shell ("Ping " & ad), vbNormalFocus
End Sub
Good luck
Business Accounts
Answer for Membership
by: cem_turkPosted on 2006-11-24 at 15:01:52ID: 18009622
what do you mean by "add a computer" ?
adding a to a list of computers to ping?