I'm running into an issue with running the winSCP scripts automatically with the windows taskscheduler. The schdeuler says that the job was completed succesfully however the files don't turn up in the correct directory.
I'm able to run the scripts manually. so i thought the error was in the task scheduler. To check this i made a simple batch script that writes an ping output to an .txt file.
@echo off ping 126.96.36.199 > D:\scheduler_test_succesvol.txt exit
So this is the batch script that is run by the taskscheduller.
option batch abort option confirm off open sftp://acc:pass@sftp:port/ -hostkey="hostkey=" synchronize local D:\Data\GS1_Data /outgoing exit
This is how the taskscheduler is configured
X Run whether user is logged on or not
X Run with highest privileges
Weekly sunday 23:59:59
Start a program
"path to the script"
Can someone help me with this. I have the feeling i'm overlooking something very obvious. If you need more info please let me know.