A scheduled task is a windows system tool that allows the user to create timely automated tasks such as web testing and site monitoring, Disk Defragmenter etc, to run at a specified time.
Task Scheduler starts each time you start Windows, and runs in the background. With Task Scheduler, you can: Schedule a task to run daily, weekly, monthly, or at certain times (such as system startup).
Using Task Scheduler:
If the task scheduler is installed on your system, you will find it in the My Computer folder. If not located, scroll down to view how to locate and use the Task Scheduler.
How to Locate Scheduled Tasks on Windows 98, NT, 2000, XP and Server 2003
Step 1. In Windows 98 click on the My Computer icon located on the Desktop. In Windows XP and Server 2003 click on the Start Menu to access the Control Panel.
Step 2. In Windows 98 double-click on Control Panel to get to the Scheduled Tasks folder. In Windows XP and Server 2003 click on Control Panel, click on Performance and Maintenance, then click on Scheduled Tasks to get to the scheduled Tasks folder
Step 3. Double-click Add Scheduled Task. Follow the instructions in the Add Scheduled Task wizard.
Step 4. Select the Open advanced properties for this task for more set-up options.
How to Add a Scheduled Task
Step 1. Add task and select program in the list of programs (Figure 1)
Figure 1 - Add a Scheduled Task
If you do not find "your" program in this list, simply select any other program (Figure 2). You can always change the settings later and, for example, point it to a batch file (*.bat) or Windows Script (*.vbs).
Figure 2 - Select program for scheduled task
Step 2. For more options, mark the "advanced properties" box (Figure 3)
Figure 3 - Advanced Properties
Background explanation: A trigger is a set of rules that will cause the task to be executed. There are two types of triggers: time-based and event-based. Time-based triggers cause a task to be executed when the time/date of the trigger has been reached. Event-based triggers cause a task to be executed when certain system events occur such as start up, log on, or idle.
Step 3. In the advanced options, check the executable path (Figure 4).
What you enter at the "Run" file could look like this: "c:\Program Files\InternetMacros4\imacros.exe" -macro YourMacro -tray -loop 50
The command line options must be placed OUTSIDE of the " " that surround the path. Quotation marks are needed because otherwise path names with spaces (as in c:\program files\) can not be interpreted correctly by the task scheduler.
If you want your task to run even if no user is logged in, you must enter a user name and password in the "Run As" box.