I save the script below as a BAT file in "EXE" folder of probe, and then I setup EXE/SCRIPT sensor. Why it is still return "OK"? Thanks.

IF "2" EQU "2" ( ECHO 2:ERROR EXIT /b 2 ) ELSE ( ECHO 0:OK EXIT /b 0 )


Article Comments

Hi,
please try removing the /b flag from your exit statements and then recreate the sensor for testing.
Now it should exit properly.
Best regards


Aug, 2013 - Permalink

It is okay now. Thank you very much.


Aug, 2013 - Permalink