ok.
I checked this and variable %errorlevel% is set to 1 if find does not find the string.

in normal batch file it would be:
%comspec% /c ping 292.117.139.29 -n 1 -w 20|find /c "(0% loss)"
if "%errorlevel%"=="1" do something...

and in kix then:
shell '%comspec% /c ping 292.117.139.29 -n 1 -w 20|find /c "(0%'+' loss)"'
if @error<>1 do something...

try it and say if it works (on my machine it worked fine...)

cheers.

btw. jochen, try this method to your ping() if you get it work, execution time dries smaller like beer in the sun

[ 02 August 2001: Message edited by: Lonkero ]

_________________________
!

download KiXnet