Lorenko thanks for your 4 little lines of advise. From those little lines I was able to do what I wanted my script to do.

I've gone with the following

code:
$array=$machine1,$machine2,$machine3,$machine4
FOR EACH $element in $array
? "Pinging $element, please wait a moment"
shell '%comspec% /c "ping $element >> $ping_file"'
...
...
...
NEXT

But, I'm still trying to compare your example with the one in the manual and I still don't trully "get" the one in the manual.

Thanks again,
Z.

[ 22. April 2003, 11:57: Message edited by: zdarma ]