%comspec% /c ping sh1262 -n 1 -w 20|find /c "(0% loss)"
if "%errorlevel%"=="1" do mapisend -u test -p s -r pete.fry -s "ping failed"


D:\test-dir>mailto

D:\test-dir>C:\WINNT\system32\cmd.exe /c ping sh1262 -n 1 -w 20 | find /c "(0 loss)"
0

D:\test-dir>if "1" == "1" do mapisend -u test -p s -r pete.fry -s "ping failed"

The name specified is not recognized as an
internal or external command, operable program or batch file.


this is what i get when i run the batch file....... what am i doing wrong?

i'm trying to use the without kix approach atm

Pete