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

Advertisement

scriptnotworking
Guest

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 :)

Reply with quote

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

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

Reply with quote

Advertisement

You can post new topics in this forum