Topic "-delete not working on sync"

Author Message
oderuyter
[View user's profile]

Joined: 2015-04-25
Posts: 1
Location: UK
My target here is to download an entire directory from an FTP site to a Windows machine THEN delete the remote directory. This is my script and I'm going nuts reading various posts and FAQ/KB's. Its downloading the files just fine but not deleting them after - please help

option batch continue
option confirm off
open user@remotehost
synchronize local -nopreservetime -nopermissions -delete "E:\DOWNLOAD\Completed\test" "/files/Completed/test/"
close

Please help me correct my code.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Please read FAQ:
http://winscp.net/eng/docs/faq_delete_synchronized_files
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