Group:  English: Windows Server ยป microsoft.public.windows.server.scripting
Thread: Newbie - Need to ping..!.

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Newbie - Need to ping..!.
Andi Merchant 11.07.2007 08:48:01
Hi All,

I need to read a file with computer names in, issue a ping to those
computers and write back to a file (or the same file) on the success or
failure of the ping..

My scripting guy has swan'ed of to Oz on hols and I could really do with a
dig out..

any pointers are very very welcome

many thanks

Andi

Re: Newbie - Need to ping..!.
Michael Bednarek <mbATmbednarek.com[ at ]BLACKHOLESPAM.NET> 11.07.2007 12:22:45
On Wed, 11 Jul 2007 01:48:01 -0700, Andi Merchant wrote in
microsoft.public.windows.server.scripting:

[Quoted Text]
>I need to read a file with computer names in, issue a ping to those
>computers and write back to a file (or the same file) on the success or
>failure of the ping..
[snip]

Trivial with the right tool, 4NT in this case:
FOR %host IN ([ at ]NAMES.TXT) ECHO %host %[ at ]PING[%host]

The 4NT function [ at ]PING[] is documented at
<http://jpsoft.com/help/f_ping.htm>; 4NT is a commercial product ("Real
work needs real tools.") Other scripting languages may require a more
elaborate solution.

--
Michael Bednarek http://mbednarek.com/ "POST NO BILLS"
Re: Newbie - Need to ping..!.
"Richard Mueller [MVP]" <rlmueller-nospam[ at ]ameritech.nospam.net> 11.07.2007 13:38:00
Andi Merchant wrote:

[Quoted Text]
> I need to read a file with computer names in, issue a ping to those
> computers and write back to a file (or the same file) on the success or
> failure of the ping..
>
> My scripting guy has swan'ed of to Oz on hols and I could really do with a
> dig out..
>
> any pointers are very very welcome

I have 3 example VBScript methods to ping linked here:

http://www.rlmueller.net/PingComputers.htm

--
Richard Mueller
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
--


RE: Newbie - Need to ping..!.
Tom McGeown 12.07.2007 11:00:00
http://www.microsoft.com/technet/scriptcenter/csc/scripts/network/client/cscne049.mspx
layout is a bit messed up on this page - but this script could be modified
to do the job

"Andi Merchant" wrote:

[Quoted Text]
> Hi All,
>
> I need to read a file with computer names in, issue a ping to those
> computers and write back to a file (or the same file) on the success or
> failure of the ping..
>
> My scripting guy has swan'ed of to Oz on hols and I could really do with a
> dig out..
>
> any pointers are very very welcome
>
> many thanks
>
> Andi
>

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net