Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


dlemley
2012-07-23T18:54:46Z
I would REALLY like to see the adding of a feature where one could monitor the # of files in a folder along with the ability to set a threshold, and once that threshold was met, we could send out an alert of choice.
Sponsor
Forum information
Brett
2012-07-25T01:43:20Z
Would be useful check feature to simplify these checks - we did implement this sort of control on some of our jobs.

Uses 2 variables - one a constant with the check value and one used as a counter.

Then read the directory for the pattern using list task

loop through the std output of this - just incrementing the couter.

test the values are equal or whatever is appropriate

send notifications or exit job etc if count is wrong

hope this helps

Brett.
dlemley
2014-02-17T15:22:03Z
Brett - I know this is an extremely late response but I was wondering if you could elaborate a little further on where you set your variable and how you set them.

Maybe you could even export your job settings and email them to me? I'd greatly appreciate any extra info you could provide.

Thx,
Dave
Support
2014-02-18T08:34:28Z
There is no built in way for doing this. I would say the best way would be to create a small script, either using the .NET Code Task (preferably) or create a batch script that polls number of files. Then you can decide what you want to do with the help of the Flow tab of that Task. The idea is that you write the number of files to standard output and compare the value in the Flow tab.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
dlemley
2014-02-18T18:18:45Z
Do you have any plans to implement a count feature? I've already submitted this request in the "Feature Request" portion of your site.

Having to write and build separate, external scripts goes against the very reason we purchase your software. It just amazes me the things we ARE able to do with Visual Cron. But it's even more amazing that we can't do something as simple as count files.
Support
2014-02-18T19:43:38Z
It think the easiest and best approach is if we add a file count Variable to List files Task. Then you can use that Variable in the Flow tab and choose to continue execution if it exceeds x number of files.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Support
2014-02-20T15:35:15Z
This Variable has now been added to 7.1.3.

http://www.visualcron.co....aspx?g=posts&t=3805 
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top