Answer the question
In order to leave comments, you need to log in
How do I set up email notification of new files in a folder?
There is a task to set up an email notification about new files in a folder with orders.
I set up a script to check for changes in the folder, everything was fine until the orders came every 30-40 minutes.
The script was run by the scheduler once every 5 minutes, and if a new order appeared in the folder, I was sent an email with an attached order (the latest file).
But now the number of orders has increased and if within five minutes 2-3 orders have arrived, after five minutes I receive an email with the last order attached.
Maybe someone has experience setting up notifications about new files in a folder?
Answer the question
In order to leave comments, you need to log in
And where to send something? If for yourself, then as an option:
1. Sharing the folder through Google / dropbox
2. Set, for example, IFTTT or its analogue on the folder
3. "if new file in" => "mail to" + attach
About "myself" I asked because IFTTT is fired in the letter.
In general, you can at least incite PowerShell. If the file is small, then at least every 15 seconds:
1. Check for files where the first character is !=.
2. If there is such a file, we soap it (there are a lot of ways to send it from PS)
3. Rename name to .name
4. Repeat after 15 seconds
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question