title: Does Windows batch support exception handling?
body: <p>Does Windows batch programming support exception handling? If not, is there any way to effectively emulate exception handling within batch files?</p>
  
  <p>I would like to be able to "throw an exception" anywhere within a batch script, at any CALL level, and have the CALL stack popped repeatedly until it finds an active "TRY block", whereupon a "CATCH block" can handle the exception fully and carry on, or do some cleanup and continue popping the CALL stack. If the exception is never handled, then batch processing is terminated and control returns to the command line context with an error message.</p>
  
  <p>There are already <a href="https://stackoverflow.com/q/3227796/1012053">couple posted ways to terminate batch processing at any CALL depth</a>, but none of those techniques allow for any structured cleanup activity that would normally be provided within other languages via exception handling.</p>
  
  <p><strong><em>Note:</em></strong> <em>This is a case where I already know a good answer that has only recently been discovered, and I want to share the info</em></p>