Configure a Scheduled Event Hosted Script Task
Use a hosted script task to execute a Visual Basic script or batch file on a schedule.
Activity Steps
- In the Configuration Explorer, expand the Tasks node.
- Expand the required task group node.
- Right-click the Scheduled Events node and select New Hosted Script Task from the menu.
- Double-click the file hosted script task node.
The Scheduled Event Hosted Script Task screen displays.
- Complete the fields in the Scheduled Event Settings field group. (See Managing Scheduled Events for a description of these fields.)
- On the Configuration tab:
- Select whether to Enable Timeout.
- If Enable Timeout is checked, enter the Timeout in seconds.
- In the Arguments field group, complete the following fields.
- Pass File Name And Path As Argument 1—Whether the file name and path are passed to the script as argument 1.
- Pass Schedule Date And Time As Argument 2—Whether the schedule date and time is passed to the script as argument 2.
- Date And Time Format—The format of the schedule date and time if Pass Schedule Date And Time As Argument 2 is checked.
- Additional Arguments—The additional arguments that are to be passed to the script. Enter one argument per line.
- On the Script tab:
- Select whether the Script is a BatchFile or VBScript.
- Enter the Script/Batch File Contents.
- Click Save.