-
Ping using shell
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!
-
Re: Ping using shell
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:\..."