Topic "Easiest way to implement a black hole (automatically move)?"

Author Message
[View user's profile]

Joined: 2013-12-15
Posts: 1
Hi guys,

I hope this hasn't been answered too many times before. I've tried finding a good solution but the ones I found didn't look optimal - and the ones that looked optimal were using the .net assembly, which I have no idea how to do myself Wink

So - does anyone know how to do this simple task?
1. When a file or directory is copied/moved into the black hole, transfer it to another host via ftp
2. If the ftp transfer is successful, delete local file
3. (optional) If there's an error, send email.

Help would be awesome! Smile
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26890
Location: Prague, Czechia
I suppose you mean a local "back hole", right?
You can setup a frequent scheduled task (batch) that tests an existence of a file in the directory. If it finds any, it starts a WinSCP upload script. Should be easy with resources you find on this site.
Start here:

You can post new topics in this forum


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