P
P
Pavel2017-09-27 13:12:07
Mail server
Pavel, 2017-09-27 13:12:07

How to make a notification by mail if a file appears in a folder on FTP?

I have a folder on the server, for example , one of the employees can put an important file there, which must be quickly picked up from there. But you need to know that the file appeared there, the best way is to send a message like alert to soap.
How to implement this please?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
ant1vit, 2017-09-27
@mrusklon

I use this script at home (tracks: deletion, addition, file changes), I set up an alert on a telegram chat

M
Maxmyd, 2017-09-27
@Maxmyd

If the server is Windows, you can write a console or Windows service that will monitor the folder for changes. In .NET, for example, there is a FileSystemWatcher, to which you can hook an event handler to create or change a file. Accordingly, in this handler, implement sending a letter.
I am sure that this can be implemented using PowerShell, for example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question