I have a directory containing dated log files that I need to parse.  These 
have filenames like:

reYYYYMMDD.log

So I do a <cfdirectory> to pull a list of files:

<cfdirectory
  action="list"
  directory="#mylogdir#"
  filter="re????????.log"
  name="dir">

But I want exclude today's log from being processed.  This isn't possible 
using cfdirectory's filter, so I figured:

<cfset today = dateFormat(now(), "yyyymmdd">

<cfquery type="dbtype" name="dir">
SELECT * FROM dir
WHERE name <> 're#today#.log'
</cfquery>

Seems to work.  Should this type of QoQ, using the same query name to 
effectively delete rows, be safe in most circumstances? 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302128
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to