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.

MonthHex valueDecimal value
Sunday0X011
Monday0x022
Tuesday0X044
Wednesday0X088
Thursday0X1016
Friday0x2032
Saturday0X4064

 

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

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

 

 

Community Additions

ADD
Show: