Hi Park,

>
> Replace
>
>          "ping 10.0.0.0 -n 30 -w 1000 > NUL",
>          "ping 10.0.0.0 -n 60 -w 1000 > NUL",
>          "ping 10.0.0.0 -n 90 -w 1000 > NUL"
>
> with
>
>          "ping 10.0.0.0 -n 30 -w 1000 ",
>          "ping 10.0.0.0 -n 60 -w 1000 ",
>          "ping 10.0.0.0 -n 90 -w 1000 "
>

That does seem to make a difference ... the main program does end as I
expected it to.

But what if I want to collect the partial output of my threads (in this case
"ping" commands) say in a file or something.
The array out[] that I have used does not seem to get it.

And the ping processes are still running .. how do I get rid of them.

(I realize that this is a different issue now ;-)).

Thanks for the suggestion, though.

-- Shanko