- 博客(0)
- 资源 (5)
- 收藏
- 关注
Scheduler.dll
C# 代码控制排程
ScheduledTasks st = new ScheduledTasks();
Task task;
DateTime nextDate = DateTime.Now.AddDays(3);
RunOnceTrigger rt = new RunOnceTrigger(nextDate);
task.Triggers.Add(rt);
//设置本程序自动三天后运行
//task.ApplicationName = Assembly.GetExecutingAssembly().Location;
// task.SetAccountInformation("domain\\user", "password");
task.ApplicationName = "notepad.exe";
task.Save();
task.Close();
2009-06-04
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人