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

Author Message


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 Smile
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24755
Location: Prague, Czechia
"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).


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License