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"
|