Batch Error Handling
Batch Error Handling
TextCrawler is supposed to continue after an error when operating in batch mode. However, when processing single files, this is not the case. If an error is encountered, the program halts displaying the error message, even if the /c option has been chosen. In order to choose files created by date, I have a batch program that first creates a list of files to be processed, then calls TextCrawler for each file in turn. If there is a problem with any file in the list, because TextCrawler halts, the batch program will be prevented from continuing.
Re: Batch Error Handling
I have done some more testing and found the following :-
TextCrawler continues for errors such as Open File and Read Only but returns a Zero exit code, even if the action fails.
TextCrawler halts with an error message for errors such as File Not Found. If the window is closed, the program exits with a Zero exit code and the batch process continues.
This behaviour is not helpful when running from a batch file. Can you please look at providing useful exit codes for failed actions/errors and at preventing TextCrawler from halting when called from the command line.
TextCrawler continues for errors such as Open File and Read Only but returns a Zero exit code, even if the action fails.
TextCrawler halts with an error message for errors such as File Not Found. If the window is closed, the program exits with a Zero exit code and the batch process continues.
This behaviour is not helpful when running from a batch file. Can you please look at providing useful exit codes for failed actions/errors and at preventing TextCrawler from halting when called from the command line.
- DigitalVolcano
- Site Admin
- Posts: 1863
- Joined: Thu Jun 09, 2011 10:04 am
Re: Batch Error Handling
Good point - added to the development list for 3.0.5
- DigitalVolcano
- Site Admin
- Posts: 1863
- Joined: Thu Jun 09, 2011 10:04 am
Re: Batch Error Handling
Update:
Version 3.0.5 now has exit codes. The halting messages which prevent auto-closing is now fixed as well.
viewtopic.php?f=13&t=1535
http://www.digitalvolcano.co.uk/textcra ... =&sct=MzA4
Version 3.0.5 now has exit codes. The halting messages which prevent auto-closing is now fixed as well.
viewtopic.php?f=13&t=1535
http://www.digitalvolcano.co.uk/textcra ... =&sct=MzA4