Synchronize inside script

Advertisement

mapmusic
Guest

Synchronize inside script

Hello,

Here is part of my WinSCP script.

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
27,209
Location:
Prague, Czechia

Re: Synchronize inside script

You probably want to do:
get -delete -speed=10240
_________________
Martin Prikryl

Reply with quote

mapmusic
Joined:
Posts:
2
Location:
Bratislava, SLovakia

Re: Synchronize inside script

martin 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.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,209
Location:
Prague, Czechia

Re: Synchronize inside script

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.

Reply with quote

Advertisement

You can post new topics in this forum