Gee, thanks - now I have two windows opening! \:o

It's clear that one is from the Ping command, since the title shows "C:\Windows\System32\Ping.exe". The other is the expected window with the output from your "1" "2" statements.

The length of time the Ping window was open was surprising until I added "-n 1" - do that and you'll see just how quickly it flashes by in my app.

So, pal - remember that the goal is to eliminate the WSH window, not add more!

Glenn
_________________________
Actually I am a Rocket Scientist! \:D