I am trying to open a dos window using a shell call. I can get the dos prompt to come up but it will only stay open for about a second and then it closes. I am using the following code:

Shell("c:\windows\ping.exe", vbNormalFocus)

Is this correct? I want to pass a ping command to the app and wait for the results.

Thanks for the help