Continuing on Exception
<p>We have a windows service which does the following
a. Get the files in a particular directory
b. Decrypt the file
c. Split the data in the file
d. Insert the data in the database</p>

<p>As of now, it is implemented in such a way that on first exception, it will terminate the process and the file causing the error is moved out to another folder. Successfully processed files remain in the same location. Due to this, at any point of time only the top most files which are not generating exceptions are getting processed. Rest of them are left out. We are forced to frequently restart the service to get all the files processed. Now we have to change the design in such a way that, even in the chance of exception with a particular file, we should continue with the remaining files.  We have the following Ideas</p>

<p>a. Move the processed files also to another location when they are successfully processed
b. Make a recursive method call for the same method which processes the files in the finally block. </p>

<p>Please suggest us the best way out. Thanks in advance.</p>
