Depending on the granularity, you can use one timer, which is a common factor in the time intervals they want. Suppose they want to put every archive in an XML file that needs to be checked every few minutes. You set up a timer that turns off once a minute, and you check how much time has passed since you did this and whether or not to do it.
If you have the opportunity to redesign, I would move away from the service to a set of scheduled tasks. Write it so that one task does one archive. Then write a controller program that configures scheduled tasks (and can stop them, change them, etc.). The API for scheduled tasks in Windows 7 is good and understandable, and unlike a service, you can enter restrictions, such as โdo not do thisโ if the computer is turned on or โonly do this if the machine is in standby modeโ together with your preferences for what to do if you missed the opportunity to run the task.7 or 8 scheduled tasks, each according to its schedule, using the same API that goes along the archive path and email address is much neater than one service trying to manipulate everything with In addition, the machine will start faster if you do not already have an autostart service.
source share