If you're interested in a complete example in VB.Net, take a look at the following:
Main Topics
Browse All TopicsHi Guys,
I need some help getting started with this, I have only just downloaded VB E 2008 and realised I cant update my old VB6 apps with it. So I need to start form scratch with this one.
I need a simple application to ping a list of machines listed in a .txt file, then update the .txt to file to state if ping was succesful or not.
I have got about 500 machines on a network at work and I want to see how many are left on through the night by running this, if they are on I will send a shutdown commmand. Before you ask they are not on a domain so I cant do this via a GP.
As always thanks for your help guys.
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.
I have written a small program to like you need. I think it will help you... This won't update the text file but create an xml report about the ping results. You need to have a dataset also!
<?xml version="1.0" standalone="yes"?>
<PingTest xmlns="http://tempuri.org/
<Pings>
<Timestamp>2009-07-20T13:16:
<Host>www.google.com</Host>
<Response>189</Response>
<Status>true</Status>
</Pings>
</PingTest>
Business Accounts
Answer for Membership
by: strickddPosted on 2009-07-07 at 07:06:24ID: 24794316
1) Use a stream reader to read your list of computers to ping en-us/libr ary/ yw67h9 25%28VS.80 %29.aspx
.com/tutor ials/netwo rk/net-pin g- aspnet2- vb.aspx (vb example at the bottom)
-- http://msdn.microsoft.com/
2) Send a ping to the computer listed on each line as you loop through the stream reader
-- http://www.aspnettutorials
3) Store the ping results for active computers to an arraylist (or text file and stream read again)
4) Loop through arraylist (or text file via stream reader) and send shutdown command.