A design question:
I'd like to build a Windows service that executes different commands at different intervals. For simplicity's sake, let's say I want to run some batch files.
The input it gets is a list of files and the intervals at which to execute.
For example:
a.bat - 4 minutes
b.bat - 1 minute
c.bat - 1 minute
d.bat - 2 minutes
I was thinking about sorting them according to intervals, and then setting a timer for each of the intervals.
I'm not sure this is the best solution and I'd be happy to hear some feedbacks.
Thanks!