How to execute a script at regular intervals
Updated on 2011-11-12 03:41:50
|
Let us first create the script that we will run at regular intervals.
- Select "Tools" then "Script Editor"
- Select "File" then "New"
- Type the script name then click on "OK"
- Type the following line:
Downloader.StartDownloader("[name]");
- Replace [name] by the download item name. Here, we want to execute a downloader at regular intervals.
- Save the script by selecting "File" then "Save"
For the execution part, we must create a time-based task.
- Select "Tools" then "Task Manager"
- Click on "Click here to add a task"
- If you want to run the script once an hour then you must do the following actions:
- Click on "Select all hours", "Select all weeks" and "Select all months" then click on "0" under "Minute" panel.
- Under "Script" panel, click on "Add" then select the previously created script
- Under "Task" panel, give a name to this task then click on "Add" to add the task to QuantShare trading software and to the Windows task manager

|