// Create scheduler setting in xml format
var settings =
@"<IsActive>{True, False}</IsActive>
<ExecutePeriod>{OneTime, EveryDay, EveryWeek, EveryMonth, OnDemand}</ExecutePeriod>
<DaysOfWeek>{Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday}</DaysOfWeek>
<DaysOfMonth>1-5,10,20</DaysOfMonth>
<FileName>C:\Program Files\ZennoLab\signalFile.txt</FileName><IsNeedDeleteFile>{True, False}</IsNeedDeleteFile>
<StartDateType>{Immediately, OnDate}</StartDateType>
<StartDate>{date DD.MM.YYYY hh:mm:ss}</StartDate>
<AttemptsRange>{5, 5 -10}</AttemptsRange> <IsClearSuccess>{True, False}</IsClearSuccess>
<Intervals>{09:00,12:00 - 17:00}</Intervals>
<RepeatType>{Continued, ContinuedWithPause, Regularly, Count}</RepeatType>
<RepeatCountDayRange>{1, 5 -10}</RepeatCountDayRange>
<EndDateType>{Infinity, OnDate, Count}</EndDateType>
<RepeatCountTotalRange>{50, 75-100}</RepeatCountTotalRange>
<EndDate>{date DD.MM.YYYY hh:mm:ss}</EndDate>";
// Set the setting to first task with known name
var name = "Name";
ZennoPoster.SetSchedulerSettings(name, settings);