dajackso Posted May 22, 2008 Posted May 22, 2008 I have a programe I launch from within a batch fileThe last 2 lines of the output can look something like the following :[2008-05-22 11:18:06 BST] <main> DBG-X: Returning 1Press 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
Mijzelf Posted May 23, 2008 Posted May 23, 2008 YourCommand | Find "Returning 1" if errorlevel 1 goto End... do your stuff:End
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now