Batch Error Handling

Tool for Search and Replace across multiple files.
Post Reply
cferri
Posts: 5
Joined: Mon Mar 30, 2015 11:07 am

Batch Error Handling

Post by cferri »

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.
cferri
Posts: 5
Joined: Mon Mar 30, 2015 11:07 am

Re: Batch Error Handling

Post by cferri »

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.
User avatar
DigitalVolcano
Site Admin
Posts: 1717
Joined: Thu Jun 09, 2011 10:04 am

Re: Batch Error Handling

Post by DigitalVolcano »

Good point - added to the development list for 3.0.5
User avatar
DigitalVolcano
Site Admin
Posts: 1717
Joined: Thu Jun 09, 2011 10:04 am

Re: Batch Error Handling

Post by DigitalVolcano »

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
Post Reply