Hi Mike,
 
There are a few scenarios where this would be helpful.
 
First checking for the existance of any file in the folder would be helpful for 
error handling.
 
Sometimes files are created which should have a minmum size if the data is 
good. Corrupt data ends up creating a file that is smaller than a certain size. 
Being able to check for the existance of any files with a filesize that is 
smaller than a predetermined limit would help the application to call for help, 
call a different app, send an email etc.
 
Looking for the existance of a certain number of files such as jpg files could 
trigger an app to create a single pdf file out of the group of jpg files.
 
I would like to be able to count the number of files using various criteria and 
display them by changing the properties (color and text) of certain buttons 
that do things to the files, ie red for no files, green plus a number to 
indicate the presence of a certain number of files in a folder.
 
Mike
 


________________________________
From: Mike Byerley <[email protected]>
To: RBASE-L Mailing List <[email protected]> 
Sent: Monday, December 19, 2011 9:39 AM
Subject: [RBASE-L] - Re: Counting items in a folder

Mike,
  Could you elaborate a bit on what you are trying to do?  Filesize or 
Filecount are pretty easy, but why do you want to search or display a file 
that is of a certain size?



----- Original Message ----- 
From: "Michael J. Sinclair" <[email protected]>
To: "RBASE-L Mailing List" <[email protected]>
Sent: Sunday, December 18, 2011 8:38 AM
Subject: [RBASE-L] - Counting items in a folder


: Hi All,
: How would you count the number of files in a folder and capture that value 
into a variable (assume no subfolders)?
: (If there were a PLUGIN for that, it would be great if the PLUGIN had the 
ability to specify file characteristics that would limit the count, such as 
count only files that are a certain size or created on or after a certain 
date, had a certain extension, etc.)
: Mike 

Reply via email to