Click to See Complete Forum and Search --> : Ping using shell


Garry
November 17th, 1999, 01:48 PM
I wrote an application to ping a machine using shell command and redirect the output to a file which was working fine till morning and suddenly it stopped working . I tried everytihing to debug it but the command does not write to the file.

My code

Pingit.BAT

Ping %1>%2

and the command

Shell "c:\sendmail\Pingit.BAT" & address & "c:\sendmail\shellping.txt"

Thanks!

Lothar Haensler
November 18th, 1999, 03:26 AM
I tried your code and everything worked fine.
All I can see are a few missing blanks in your shell command.
Shell "...bat " & address & " c:\yourfile.txt"
watch the blank after "BAT" and before "C:\..."