heh, silly me. I said it using confusing style.
the command do is not recognized.
try in batch:
%comspec% /c ping sh1262 -n 1 -w 20|find /c "(0% loss)"
if "%errorlevel%"=="1" mapisend -u test -p s -r pete.fry -s "ping failed"
and/or:
%comspec% /c ping sh1262 -n 1 -w 20|find /c "(0%% loss)"
if "%errorlevel%"=="1" mapisend -u test -p s -r pete.fry -s "ping failed"
_________________________
!

download KiXnet