View Single Post
  #50 (permalink)  
Old 02-21-2008, 02:00 AM
prasannavigneshr prasannavigneshr is offline
D-Web Incredible
 
Join Date: Feb 2007
Posts: 1,321
prasannavigneshr is on a distinguished road
Send a message via MSN to prasannavigneshr
Thumbs up ColdFusion Tips & Tricks - Scheduling a program to execute only on certain days

Scheduling a program to execute only on certain days


Create your program and add it to the Cold Fusion Scheduler via the Administration pages to execute every day at the time you desire. Then add the following code at the beginning of the program. This code will only allow the program to execute on the 15th and the last day of each month. If you need it to execute on any other days, simply modify the CFIF conditions to include it.

Example HTML/CFML code:
Code:
<CFIF Day(Now()) NOT EQUAL 15 AND Day(Now()) NOT EQUAL DaysInMonth(Now())>
  <CFABORT>
</CFIF>
__________________
Prasanna Vignesh
MCPD | Web Developer
Reply With Quote