Now moving on, I have a folder on my network on which users store lab results. I created a scheduled task which call on WINSCP to automatically upload any new files to remote FTP server and then it moves those files to a different directoy on the local server. All this is working just fine.
The problem is that I also configured email notification for when the job fails. The email portion works a little to well. The problem is that when there are no files to be transfered I get an email with an error notification.
This is what I have as a script which get called on by a batch file.
option batch on
option confirm off