File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes General Computing and the fly likes DOS batch file error handling? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "DOS batch file error handling?" Watch "DOS batch file error handling?" New topic
Author

DOS batch file error handling?

Alan Wanwierd
Ranch Hand

Joined: Jun 30, 2004
Posts: 624
I'm writing a batch file to join together a bunch of processes triggered by batch files... When everything works its great, but my error handling sucks. I've tried using the %ERRORLEVEL% variable to crudely trap my errors, but my outer calling batch file never goes into error:



The output I end up with is:



Obviously the Batch2.bat file is erroring - but the error is not being passed back. Is there a way around this?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DOS batch file error handling?
 
Similar Threads
How to trap a java exception where java is invoked from a .bat file
Cruise control giving wrong status in email.
how to redirect the tomcat (5.0) console output to a text file
how to run mvn commands using ms bat file
Setting up the Java Web Services tutorial and Sun Java system appn server