Get notification on every new file

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
Rosetta_itgroup
Posts: 13
Joined: Sat Aug 09, 2014 6:44 pm

Get notification on every new file

Post by Rosetta_itgroup »

Hello everyone,

I'm new here, i hope i'm publishing on the right category of the forum.
I need your help with something highly important for me.
Our incoming fax's scanned automatically to a network folder, i need somehow to get notified by email on every new file that has been added to the folder and if I can, also to have the ability to add the file's name to the email that will be great.

Can you help me out which test will help me with it and how to do it?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Probably File/Folder Availability test method will work the best
http://ks-soft.net/hostmon.eng/mframe.h ... #fileexsts

Use %NewestFile% variable for the test, set "alert when file exists and newer than 5 min" option (5 min just for example, use 5 min test interval as well)

Then setup "Send e-mail" action using %FileName% variable
http://ks-soft.net/hostmon.eng/mframe.h ... .htm#macro

But there is a problem - if several files will be created within this interval (e.g. 5 min), HostMonitor will inform you about latest file only.
If you can move files after processing then there is solution, add 2nd action into profile "Execute external program" - start CMD or BAD file and move processed files.

Regards
Alex
Rosetta_itgroup
Posts: 13
Joined: Sat Aug 09, 2014 6:44 pm

Post by Rosetta_itgroup »

Where should I put the %newestFile% variable?

i've added a screenshot: https://www.dropbox.com/s/zqv7ht9yziaae ... s.png?dl=0[/img]
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

Use %NewestFile% instead of filename/filemask.
E.g.
D:\public\_Incoming_Faxes\%NewestFile%
Rosetta_itgroup
Posts: 13
Joined: Sat Aug 09, 2014 6:44 pm

Post by Rosetta_itgroup »

Thank you it worked, I appreciate your help.
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

You are welcome.
Post Reply