Re: %WINSCP_RESULT%
Thanks Martin,
Wow! Not sure how I missed that.
Please accept my apologies for pointing the finger at WINSCP.
Makes perfect sense now. The log file I emailed of task failure was only written to on the first time through the script. So if a failure occurred on the second run, it still sent the first log file containing the success log. The reason I was getting off track is that the host we connected to only supports one connection so ultimately one of the other log files show the connection error making it look like WINSCP was getting the error result from the other job.
Many, many thanks for your help!
Wow! Not sure how I missed that.
Please accept my apologies for pointing the finger at WINSCP.
Makes perfect sense now. The log file I emailed of task failure was only written to on the first time through the script. So if a failure occurred on the second run, it still sent the first log file containing the success log. The reason I was getting off track is that the host we connected to only supports one connection so ultimately one of the other log files show the connection error making it look like WINSCP was getting the error result from the other job.
Many, many thanks for your help!