Error Handling Through Batch Process
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, all.
I have a lisp routine that will always be used while running a batch script on multiple files at a time. One of the process of the routine is to find/open a file through an "if" statement - if it can't find said file, it should provide an error message.
The thing is, I would like to provide an error message like an alert message (that pops up), but it would be really annoying if you are batch processing, say 100 files, and have to press "OK" 100 times (because the batch process we are using does not stop if there's an error with the script/lisp routine, it just keeps trying to move on). Also, a console message would not be ideal, since when we are doing batch processes we don't really pay attention to the console much.
Here's what I was thinking, if said file cannot be found:
- For the first file in the batch, pop up an error message;
- Then, after that first one, write up a text error report file (so it knows it provided the first error message)
- Then not display any error messages after that till the end of the batch process.
Is there a better way to handle this situation? And if so, could someone help me write it up?
Thanks in advance,
Edgar