Posted: 2014-04-15 16:51
# Automatically answer all prompts negatively not to stall
# the script on errors
option batch on
# Disable overwrite confirmations that conflict with the previous
option confirm off
open sftp://username:password@ip address/
# Change remote directory
# Force binary mode transfer
option transfer binary
# sync from remote to local
synchronize local F:\Local Directoy
I got it working. I decided against using a script and just added it to the command line. I was missing some ""
# Exit WinSCP
I want the files that are on the server to synch to my local F:\
I have setup a scheduled task on the server for a daily pull. The command I am using is "C:\Program Files\WinSCP\WinSCP.exe /script C:\Scripts\myscript.txt"
Any idea what I am doing wrong? Thanks!
Location: Prague, Czechia
So does it work or not?
You can post new topics in this forum
And it's free!