I am trying to call the ping command from a VB app to test if a web server
is down. I'm basically executing a command line thru CreateProcess and
piping the results to a text file:

ping www.somesite.com >pingresults.txt

This isn't working. pingresults.txt never gets written. If I start a
comand window session (Start|Run|cmd) and then execute the same command,
everything is cool. But, if I do Start|Run|ping www.somesite.com
>pingresults.txt, the command window flashes up but nothing is written to

the output file.

I've also tried calling the executable directly
(c:\winnt\system32\ping.exe), but nothing seems to work. Does anyone know
how I need to call ping thru CreateProcess?



BTW, I am running Win2000 Server.