Re: Host key automatically copy and press yes
Please start by reading "Verifying the Host Key ... in Script:
https://winscp.net/eng/docs/scripting#hostkey
https://winscp.net/eng/docs/scripting#hostkey
# Connect
open sftp://XXXXX:YYYYYYY@sftp-eu2.onbaseonline.com/"
# Change remote directory
cd /home/user/Outgoing
# Force binary mode transfer
option transfer binary
# Download all files to the local directory I:\Dat\39AESTA\Data\Recall
option confirm off
get *.* I:\Dat\39AESTA\Data\Recall
# Disconnect
close
# Exit WinSCP
exit