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>