Topic "Synchronize inside script"

Author Message
mapmusic

Guest


Hello,

Here is part of my WinSCP script.

Code:
cd /Clips
lcd d:\clips
synchronize local -delete -speed=10240


I think after this script remote files should be deleted.
But files remains in remote dir.
I need to delete these after successfull transfer.

Thanks for tips

Martin
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24556
Location: Prague, Czechia
You probably want to do:
get -delete -speed=10240
_________________
Martin Prikryl
mapmusic
[View user's profile]

Joined: 2010-07-29
Posts: 2
Location: Bratislava, SLovakia
prikryl wrote:
You probably want to do:
get -delete -speed=10240


I use synchronize because I need to copy only files which are not in local directory.

M.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24556
Location: Prague, Czechia
OK, but you are misusing synchronization then. As synchronization aims to end with synchronized directories, not with one of the directoeries being empty.
Anyway, you can use synchronization and remove the remote directory once synchronization ends.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24556
Location: Prague, Czechia
I have added topic on deleting files after synchronization to FAQ.
_________________
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