You can use the errorlevel built-in function to determine if an application (remote or local) has been successfully started. You can also use it to determine whether an error occurred while sending data to a started application.
Example 1
start remote Host "COM2"
"1200 databits 7 stopbits 1 evenpar"
if (errorlevel != 0) then
# Application could not be started
exit
end if
Example 2
send "display rpt14\r" to Host
if (errorlevel = 0) then
# Command was successfully sent
action RetrieveReport else
# Command could not be sent
make IO_ErrorMessage visible
stop Host
end if
You should test only for errorlevel being equal to or not equal to zero, where zero indicates success and non-zero indicates failure.