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: Keep Remote Directory Up to Date with Delete source file.

WinSCP does not have such functionality. The purpose of the "keepuptodate" is synchronizing the folders, while you are moving the files from local folder to the remote one.
You can loop your WinSCP move script, like this:
:retry
 
winscp.com /script=script.txt
 
goto retry

Though that's bit inefficient, as you will be authenticating over and over again.
More efficient would be to move to PowerShell and WinSCP .NET assembly.
https://winscp.net/eng/docs/library_powershell#net
aali

Keep Remote Directory Up to Date with Delete source file.

I tried to use Keep remote Directory Up to Date with delete option but it delete the file from destination. I found that I can use
put -delete C:\source\* /dest/

to fulfill my requirement but I don't know how to run this with keep up to date option all the time.