Topic "Script not workin..but im probably doing it wrong"

Author Message
wicked
[View user's profile]

Joined: 2014-04-15
Posts: 2
# 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
# Connect
open sftp://username:password@ip address/
# Change remote directory
cd /u/mhs/xml-dumps
# Force binary mode transfer
option transfer binary
# sync from remote to local
synchronize local F:\Local Directoy
# Disconnect



I got it working. I decided against using a script and just added it to the command line. I was missing some "" Smile
close
# Exit WinSCP
exit

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!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
So does it work or not?
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License