È possibile utilizzare Task Scheduler Managed Wrapper:
using System;
using Microsoft.Win32.TaskScheduler;
class Program
{
static void Main(string[] args)
{
// Get the service on the local machine
using (TaskService ts = new TaskService())
{
// Create a new task definition and assign properties
TaskDefinition td = ts.NewTask();
td.RegistrationInfo.Description = "Does something";
// Create a trigger that will fire the task at this time every other day
td.Triggers.Add(new DailyTrigger { DaysInterval = 2 });
// Create an action that will launch Notepad whenever the trigger fires
td.Actions.Add(new ExecAction("notepad.exe", "c:\\test.log", null));
// Register the task in the root folder
ts.RootFolder.RegisterTaskDefinition(@"Test", td);
// Remove the task we just created
ts.RootFolder.DeleteTask("Test");
}
}
}
In alternativa è possibile utilizzare native API o andare per Quartz.NET. Vedi this per i dettagli.
Tutto ciò che serve è qui: http://msdn.microsoft.com/en-us/library/aa383614(v=vs.85).aspx. API, esempi e spiegazioni su come ottenere ciò di cui hai bisogno a livello di programmazione. – kroonwijk