1 of 1 people found this helpful
echo may not do it. Is this a batch file? I believe you need to use the "exit" command and give it your non-zero exit code
With VBscript I typically do a "Wscript.quit 9" on failure.
Thank you Wim for getting me headed in the right direction. I simply replaced echo 1 with exit 1 and the scheduled script aborted as intended. ( I am using Bash )