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!