Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Scripting...Daylight savings change now downloads everything

Thanks for your report.
I have sent you an email with a development version of WinSCP to address you have used to register on this forum.
RussFreeman

Scripting...Daylight savings change now downloads everything

Hi,

My first post :-)

Now that DST has kicked in here in the UK my simple script downloads everything every time it is run. It didn't do this yesterday.

All it does is sync the files from a remote FTP server to my local drive but it constantly downloads again and again.

I'm sure I must be doing something wrong but having had a good look through the docs I can't find it.

Please, someone point me in the right direction :-)

Version 5.1.0 (Build 2625) - which I have just downloaded and tested against.

The command line:
winscp /script=<scriptname>.txt


The script:
# 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 using a password
open <user/password/etc> -passive=on

# Change remote directory
cd "<server path>"

# Force binary mode transfer
option transfer binary
synchronize local "<path>" -mirror

# Disconnect
close

# Exit WinSCP
Exit