File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DOS batch file error handling?

 
Alan Wanwierd
Ranch Hand
Posts: 624
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic