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: 1)Watch local dir for new file 2)Upload 3)Delete local file?

"keepuptodate -delete" makes it delete remote file, when corresponding local file is deleted.

There's no option for what you ask for.
You can schedule moving the files from local folder to remote one in regular intervals (put -delete).

Read
https://winscp.net/eng/docs/guide_schedule
scriptnotworking

1)Watch local dir for new file 2)Upload 3)Delete local file?

Hi all,

If anyone could help with this, I'd very much appreciate it.

I've been using the scripting functionality of WinSCP, in particular, keepuptodate, to watch a local directory for new files, then upload them to the server.

However, now the requirement has changed:

1) WinSCP should watch the local directory for new files
2) Upload new files when they've been added to the local dir
3) After transmission, delete local file

I thought that keepuptodate -delete would do the trick, but it doesn't seem to do anything more than keepuptodate on its own.

Can anyone help with this please?

Thanks :)