WeeklyTrigger.DaysOfWeek property

For scripting, gets or sets the days of the week on which the task runs.

Syntax

WeeklyTrigger.DaysOfWeek As short

Property value

A bitwise mask that indicates the days of the week on which the task runs.

Remarks

The following table shows the mapping of the bitwise mask used by this property.

Month Hex value Decimal value
Sunday 0X01 1
Monday 0x02 2
Tuesday 0X04 4
Wednesday 0X08 8
Thursday 0X10 16
Friday 0x20 32
Saturday 0X40 64

When reading or writing your own XML for a task, the days of the week are specified using the DaysOfWeek element of the Task Scheduler schema.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
Type library
Taskschd.tlb
DLL
Taskschd.dll

See also

Task Scheduler