|Okay. So, after posting my initial reply to your question, I realized I'm an idiot and that I posted this response which was meant for another project I'm trying to figure out. Please disregard my previous post and forgive me for a stupid momentary lapse of reality.|
To truly answer your question...
The files that I am looking to count are all .tif images with the actual file name being a document control number. Example: 102096200001.tif, 102096200002.tif, 102096200003.tif, 102096200004.tif, 102096200005.tif, etc.
The first two digits are the year (10), the next three digits (209) are the Julian date and the next two digits (62) are the two I'm concerned with. I need to count all of the files that contain "62" in the fifth and sixth space of the image name, as well as the total number of files that contain "91" in the fifth and sixth space. The reason these counts are necessary is because the "62" and "91" represent a specific type of claim to the client that needs to be tracked.
Also, as I posted in my original reply, the daily folders do normally have two subfolders but that is not always the case. As an example, sometimes we will only receive a HCFA file for SubplanA, but no UB. Obviously, if we don't receive one of these two files, there is no MMDDYY_HCFA or MMDDYY_UB folder created for that day, whatever the case may be.
So, as an example, let's say I need the counts on the following subplan directories:
*Let's pretend we didn't receive a UB file for this date, however, we may receive one tomorrow.
Sorry for the confusion in posting the wrong reply! Hopefully this provides the information you need. I appreciate any help you can shed on the topic!