Quantcast
Channel: Task Scheduler Managed Wrapper
Viewing all articles
Browse latest Browse all 2206

New Post: I want to create a schedule that will run every 1 hour in a day.

$
0
0
Assuming the task begins triggering immediately, runs indefinitely and executes a program:
new TaskService().AddTask(taskName,
   new DailyTrigger { Repetition.Duration = TimeSpan.FromHours(23), Repetition.Interval = TimeSpan.FromHours(1) },
   new ExecAction("notepad.exe", "c:\\test.log", null));

Viewing all articles
Browse latest Browse all 2206

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>