A little recursion using type and datelastmodifed will do this nicely. So
you basically find all directories and go down them until the recursive
function reaches the end. I've done this before, but I don't have the code
in front of me, so you need to write it yourself. Just remember, recursion
is fun, try not to crash your server:)
list directory skipping "." and ".." and do:
<cfif Type is "Dir">
<cfif month(DateLastModified) eq 1>
<cfset cnt=cnt+1>
</cfif>
<cfcallyourself curr_dir="#curr_dir#\#name#" curr_cnt="#cnt#">
</cfif>
<cfoutput>totalcount=#cnt#</cfoutput>
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of [EMAIL PROTECTED]
Sent: Wednesday, February 07, 2001 10:40 AM
To: [EMAIL PROTECTED]
Subject: CFDirectory - DateLastModified
Hello all,
I had a request the other day to count the number of files we had changed
for our application in the month of January. Of course I could grab 1
directory at a time with cfdirectory and do a count, but how can you get cf
to look at all the subdirectories and count the files where the last
modified date starts with 1 (Jan) as well?
Thanks for your input,
Casey Cook
-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com
-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org
-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com
-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org