Command Line Schedule Examples

In this section:

This section provides examples on how to configure various schedules using the command line.


Top of page

x
Once a Year

To schedule the same task using the command line, use the following command:

schedule add -name RunOnNewYear -description Run once a year on New Year's Day at
   12:01am -minute 01 -hour 0 -day 1 -month January -command run script.xyz.scr -save

Top of page

x
Once a Month

To schedule the same task using the command line, use the following command:

schedule add -name LDOBScript -description "On the last day of business run script
   scr.xyz.scr" -minute 0 -hour 0 -day @LBDOM -command run script.xyz.scr -save

Top of page

x
Once a Week

To schedule the same task using the command line, use the following command:

schedule add -name RunOnMonday -description "Run the script script.xyz.scr on
   Monday evening at 11:59pm" -minute 59 -hour 23 -weekday Monday -command run script.xyz.scr -save

Top of page

x
Daily

To schedule the same task using the command line, use the following command:

schedule add -name RunDaily -description "Run the script script.xyz twice daily;
   once at 12pm (noon) and again at 6pm" -minute 0 -hour 12,18 -weekday Mon,Tue,Wed,Thu,Fri
   -command run script.xyz.scr -save

iWay Software