Hi Nick. You can write and test the script and then ask your admins to
schedule it for you. Here's a simple script I've used with great success,
modify accordingly.
<cfdirectory directory="c:\web\website.com\images\tmp" action="list"
name="tmpList">
<cfquery name="getOld" dbtype="query">
select * from tmpList
where dateLastModified < #CreateODBCDateTime(DateAdd("n", -5, Now()))#
</cfquery>
<cfoutput>
<cfloop query="getOld">
<cffile action="delete" file="c:\web\website.com\images\tmp\#name#">
</cfloop>
Deleted #getOld.recordcount# Files from c:\web\website.com\images\tmp\<br>
</cfoutput>
-----Original Message-----
From: Nick Sweeney [mailto:[EMAIL PROTECTED]
Sent: Monday, June 11, 2007 4:24 PM
To: CF-Newbie
Subject: RE: cffile possibilites?
Mike,
Where are you setting that schedule task? In the CF Administrator or
somewhere else at the server level? (I don't have direct access to the
CFAdmin or the server.... But can pass the recommended change on.)
- Nick
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 and Flex 2
Build sales & marketing dashboard RIAâs for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT
Archive:
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:2835
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15