OK, this is just me playing a guessing game here because your explanation is still pretty vague to me.
Since you want to “execute task x times per day” “via Code” “and remember where it left off.” I would create a little table (Access, SQL Server, Oracle, even a text file) where you can keep any needed information about your tasks, and write a simple EXE (scheduled to run every hour, for example, suggested by jebenson) that looks at this table and preforms needed tasks. You can write into that table information like: which other EXE should be run (small exe’s that preform the individual tasks), and when (every hour, every day, once a month, etc. This would be a part of info you can keep in your table). You can keep other information, like the place where you stopped so your task would pick it up from that place when it would start again.
I have something similar – an EXE that starts at night around midnight and runs some Stored Procedures in certain order. All that information is kept in the data base: order of jobs to run, how often (every day, once a month, weekend, etc). I keep adding, deleting, modifying procedures mentioned in this table, but the EXE file has not been touched for years.
Have fun.
---- Andy