I have a programe I launch from within a batch file The last 2 lines of the output can look something like the following : [2008-05-22 11:18:06 BST] <main> DBG-X: Returning 1 Press any key to continue . . . where returning 1 indicates an error. If this return code is encountered I'd like to perform a particular action. How can this output be captured? Thanks