Captured from Comments on Examples Page - Moved here for better visibility
jmealing3 Thu at 8:29 PM
Great looking package, thanks.
Question: How do I schedule a task to run at uniform intervals? I see how to set the start time and the end time for the process being started, but I want to have a process that re-schedules itself at regular intervals.
More examples and better descriptions would be greatly appreciated (not everyone is as strong a C# and OO programmer as you).
Also, I expected the notepad example to actually run notepad - it doesn't seem to do anything. I think that I'm missing some understanding of how the TaskScheduler is supposed to work
dahall Thu at 11:38 PM
See the TimeTrigger section of the "Complex Example" above for an example of how to setup a recurring trigger on an interval. I'll look to improve the examples and descriptions. For the examples, notepad should actually run if the triggers and the
task are all enabled.
jmealing3 Today at 1:24 PM
Thanks for the pointer. Just tried to build the editor and it would not compile. Couldn't find the TaskEditDialog. I have added references to all the dlls in the TaskScheculer and Editor but the compiler (VS 2010) cannot find the dialog. What am I missing?
Also, every example ends by removing the task. Why and where should I look to find the registered task(s)? I commented out that line and still cannot find the task register file. The root directory come back as "\", b ut I've looked everywhere and
still cannot find the file. Thanks for your help one this.
jmealing3 Today at 2:48 PM
Some good news: The notepad task did finally run: way late, but it ran.
Environment: .Net 4, VS 2010 Ultimate, WinXP SP3
More problems: I downloaded the source code and only the COMTask would build. Here are the error messages from the TaskEditor:
Error 727 'AeroWizard.WizardPage' does not contain a definition for 'Suppress' and no extension method 'Suppress' accepting a first argument of type 'AeroWizard.WizardPage' could be found (are you missing a using directive or an assembly reference?) D:\Downloads\TaskScheduler\taskscheduler-70200\TaskService\TaskEditor\TaskSchedulerWizard.cs
868 9 TaskEditor
From TestTaskService 17 errors, first one shown:
Error 605 'Microsoft.Win32.TaskScheduler.TaskSchedulerWizard' does not contain a definition for 'AvailablePages' and no extension method 'AvailablePages' accepting a first argument of type 'Microsoft.Win32.TaskScheduler.TaskSchedulerWizard' could be found (are
you missing a using directive or an assembly reference?) D:\Downloads\TaskScheduler\taskscheduler-70200\TaskService\TestTaskService\Program.cs 192 10 TestTaskService
jmealing3 Today at 4:19 PM
Got some more information that might help: I'm running Win XP SP3, but behind on updates (lots of them). When I built the Complex example, I found that I have only V1.1 of TaskScheduler. While this won't fix everything, it might reduce the problems somewhat.
Any idea where to get V 2?
I will be installing the updates today, hoping that V2 comes in, but the list of updates does not show V2 explicitly. Is there some place that I can get it? MS downloads don't show it anywhere. Thanks in advance.
jmealing3 Today at 5:10 PM
Still more info: Task scheduler doesn't run on XP. My bad!
ComplexTaskSample doesn't compile: line 185 throws an exception. It shouldn't, but it does - at least on my machine. The line is:
MonthlyDOWTrigger mdTrigger = (MonthlyDOWTrigger)td.Triggers.Add(new MonthlyDOWTrigger());