Post a reply

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: Automation Sync both dirs

There's no (official) way to enable deleting from command-line with the /keepuptodate.

But you can use scripting instead:
https://winscp.net/eng/docs/scriptcommand_keepuptodate
The keepuptodate command has -delete switch.
m3isj

Automation Sync both dirs

hi.
I'm trying to keep an FTP site updated with files from my local directory, but I'm not sure how to make sure that deleting a file from the local directory also removes it from the remote FTP site.
start "" "C:\Program Files (x86)\WinSCP\WinSCP.exe" m3isj@sitedomainhere.com  /keepuptodate C:\Test / /defaults"

thanks,
Martin