# Generating alert when iles in a folder exceeds a set number

**URL:** <https://www.finalbuilder.com/forums/t/generating-alert-when-iles-in-a-folder-exceeds-a-set-number/4542>\
**Category:** Discussion\
**Created:** [October 16, 2013, 11:38am UTC](https://www.finalbuilder.com/forums/t/generating-alert-when-iles-in-a-folder-exceeds-a-set-number/4542 "2013-10-16T11:38:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ibbram](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/i/ce73a5/32.png) [@ibbram](https://www.finalbuilder.com/forums/u/ibbram)\
**Post date:** [October 16, 2013, 11:38am UTC](https://www.finalbuilder.com/forums/t/generating-alert-when-iles-in-a-folder-exceeds-a-set-number/4542/1 "2013-10-16T11:38:35Z")

</div>

Hey,

Is there an easy way to use automise to monitor a folder and when the number of files exceeds e.g. 50, it sends out an email alert?

cheers,

Bram

---

<div class="post-metadata">

**Author:** ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)\
**Post date:** [October 28, 2013, 12:32pm UTC](https://www.finalbuilder.com/forums/t/generating-alert-when-iles-in-a-folder-exceeds-a-set-number/4542/2 "2013-10-28T12:32:34Z")

</div>

Hi Bram,   
  
 Typically we see Automise as a script running tool, not so much a monitoring service. With that said however this is possible.   
  
 The quickest way to have this work is to schedule a script to run as often as you require. In the script simply fill a fileset with all the files of the directory in question (make sure to pay attention to recursion if you require it). Then simply iterate the list, and increment a counter. If the counter is above 50 email people.   
  
 The limitations here would be around timing. The script will run every X seconds, and will take Y to run. Therefore you have a window of X + Y where the directory could pass 50 and will only get to know X + Y seconds later (also with the delay of email). Nevertheless this should work well.
