This project has moved. For the latest updates, please go here.

DaysInterval not working on XP

May 25, 2012 at 2:57 PM

I am unable to change the days interval value for an XP machine regardless of where I try to set the value. I am successfully setting a scheduled task but I just don't want to run the script everyday and I do want this value to be user selectable (nudDays.value) My code snippet is below:

Dim ts As New TaskService

Dim td As TaskDefinition = ts.NewTask       

Dim dt As New DailyTrigger(2)

td.RegistrationInfo.Description = "pstBackup"

dt.StartBoundary = dtpTime.Value

dt.DaysInterval = 2 'CShort(nudDays.Value)           


td.Actions.Add(New ExecAction(BATFILE))            ts.RootFolder.RegisterTaskDefinition("pstBackup", td)

Jun 13, 2012 at 5:25 PM

Fixed in changeset 78635. Thanks for reporting this bug.