Or at least, that is what I understood from:

"If EXIT is followed by a numeric expression, then @ERROR is set to the value of that expression and you can check it in the calling script or batchfile."
_________________________
Regards, Jeroen. There are two ways to write error-free programs. Only the third one works.