3 Replies - 400 Views - Last Post: 06 February 2013 - 07:26 AM Rate Topic: -----

#1 Boris10  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 11-January 13

Task Scheduler IWeeklyTrigger DaysofWeek

Posted 05 February 2013 - 11:58 PM

Hi Everyone i trying to create a task scheduler programmatically. I am stack on creating a weekly trigger. I am trying to allow the user to select days from monday to sunday. The problem i am having is that i can only create a trigger with one of the 7 days. How can i assign all 7 days to the weekly trigger?

Below is my code that works for one day out of seven:
Dim Weekly As TaskScheduler.IWeeklyTrigger
            Weekly = task.Triggers.Create(_TASK_TRIGGER_TYPE2.TASK_TRIGGER_WEEKLY)

            Weekly.Id = "Weekly IAccpacTrigger"
            Weekly.StartBoundary = String.Format("{0:yyyy-MM-dd}", dtDate.Value) & "T" & Format(dtTime.Value, "HH:mm:ss")
            Weekly.DaysOfWeek = 1
            Weekly.Enabled = True 


Is This A Good Question/Topic? 0
  • +

Replies To: Task Scheduler IWeeklyTrigger DaysofWeek

#2 tlhIn`toq  Icon User is online

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5630
  • View blog
  • Posts: 12,078
  • Joined: 02-June 10

Re: Task Scheduler IWeeklyTrigger DaysofWeek

Posted 06 February 2013 - 05:07 AM

http://www.dreaminco...ger-daysofweek/
Was This Post Helpful? 0
  • +
  • -

#3 Boris10  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 11-January 13

Re: Task Scheduler IWeeklyTrigger DaysofWeek

Posted 06 February 2013 - 05:42 AM

Hi, its taking me to a duplicate link i made accidentally. Any other ideas
Was This Post Helpful? 0
  • +
  • -

#4 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9493
  • View blog
  • Posts: 35,839
  • Joined: 12-June 08

Re: Task Scheduler IWeeklyTrigger DaysofWeek

Posted 06 February 2013 - 07:26 AM

Please do not create duplicate topics. Closing.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1