File Processing

In this section we will move the files from Incoming to Outgoing folders, where they will be processed. We will then send an e-mail to the designated recipient. After the file is processed and the notification sent, we will move the file to the new Processed folder.

First we need to create a folder called Processed in the temp folder, in the same place as the Incoming and Outgoing folders. Since we are continuing on with the Chapter 4 code, we want to update Configuration.xml to add the new element, which we will call ProcessedPath. The ProcessedPath element will go under the current <FileWorkerOption> element because it will be configured on a per-file basis. In Example 5-2 you can see the new element added to our configuration ...

Get Programming Windows® Services with Microsoft® Visual Basic® 2008 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.