Using FAOPGP

Script Scheduler

The script scheduler lets you schedule scripts so that they can be run unattended at a later date / time.  You can schedule a task to run daily, weekly, or monthly, change the schedule for a task, and customize how a task runs at a scheduled time.  You can set tasks to run once only or multiple times and they can be given varying start and end dates and times.  See also Scheduler command line parameters

Scripts can be scheduled to run at a :

 certain date / time
 certain time every day, week, month, etc.
 when the system is idle

See also examples of use and scripting FAQs


To start the task scheduler select 'Schedule script' from the Tools menu in the FAOPGP CLS Script editor.  The following dialog is displayed :

Task tab



Run
This is the name (and the path to) the script file you want to run.  This is automatically inserted into this field by FAOPGP CLS.

Start in
Not required - leave blank.

Comments
Here you can type a note or other information associated with the task.

Run As
Your Windows logon name is automatically inserted here for you.  You need to press the button and enter your Windows logon password.  

IMPORTANT NOTE : You must enter your Windows logon password or the script will not run !  This is not the password you use to logon to FAOPGP CLS but the password you use to logon to Windows.  The user account that is running the script MUST have a password (an automated logon to Windows is not acceptable) otherwise you will receive a 'Script could not start' message.  Read/execute permissions must also be set on the folder where the script file is saved to and for the script file itself.  Once a script file has been created and scheduled haowever you no longer have to logon to Windows for it to run.  See scripting FAQs

Enabled checkbox
This must be left checked in order for the script to run when scheduled.  If you want to keep a scheduled script for future use or reference but do not want to run it in the near future then you can uncheck this box - the script will remain in your list of scheduled tasks but will not be executed.


Schedule tab



Press the button to specify when the script will be run.  You can specify more refined parameters by pressing the button. The following dialog is displayed :




Settings tab



Via this tab you can configure detailed settings associated with the scheduled task.  Detailed help for these options is available by right-clicking on an option and selecting the 'Whats this?' button.


Viewing and editing Scheduled Scripts

Once you have scheduled scripts you can view them at any time, change when they are to be executed, and other parameters associated with them. Selecting 'View scheduled scripts' from the FAOPGP CLS Script Editor Tools menu will display the following window :



Highlight a task, right-click and select 'Properties' in order to edit it.

You can also right-click on a task and select 'Run' in order to execute it immediately.