Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFSCHEDULE & CFDIRECTORY help

Status
Not open for further replies.

jmcg

Technical User
Jun 30, 2000
223
0
0
GB
I have never used this function before so any help appreciated.
I am looking to run a template that will delete all files from a directory every night and do not have access to the CF admin.

Tried:
<cfschedule action = "update"
task = "TaskName"
operation = "HTTPRequest"
url = " startDate = "8/7/03"
startTime = "14:25 PM"
interval = "60"
resolveURL = "Yes"
requestTimeOut = "600">

The template deletefile.cfm is

<cfschedule action = "update"
<CFDIRECTORY action="DELETE" directory="C:\CFusionMX\ filter="*.xls">

Neither the schedule or the delete tag works, any help with either or both much appreciated.
 
I think it might be something to do with your start date (startDate = "8/7/03") I don't have a cf server in front of me to test but seem to remrmber something that if the sdate is set in the past for an update it won't run. try changing that to a date in the future, and remember it is in US date format (mm/dd/yy)

Hope this helps!

Tony
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top