I am trying to execute a batch through the task scheduler and fails with the below error. But when i try to run the batch manually it works fine. Please help, its quiet urgent.
Below is my code:-
"C:\Program Files (x86)\WinSCP\winscp.com" /command "open sftp://XXXXX:XXXXXX@XXXXXX.XXXXXX.com" "ls" "cd WORK" "get TEST*.txt E:\TESTFOLDER\" "exit"
Below is the log:-
Continue connecting to an unknown server and add its host key to a cache?
The server's host key was not found in the cache. You have no guarantee that the server is the computer you think it is.
If you trust this host, press Yes. To connect without adding host key to the cache, press No. To abandon the connection press Cancel.
(Y)es, (N)o, C(a)ncel, (C)opy Key: Cancel
Host key wasn't verified!
Host key fingerprint is ssh-rsa 2048 XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX