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 )
Modified on 2025-06-10 14:11:32 +0200
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 )
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