Hi Don.
>The errors are both kinds..... connection failures, work files not being created to C00005. If I change the code to error handle and exit that error still won't appear in the task scheduler and we're back to base 1 again with a task that didn't finish / failed and we didn't know about it.
When an error occurs in your app, terminate the app using the Windows API ExitCode function (see
http://fox.wikis.com/wc.dll?Wiki~ExitCode~WIN_COM_API). The Windows Task Scheduler will then know that the task failed.
Doug