TaskSettings.MultipleInstances property
For scripting, gets or sets the policy that defines how the Task Scheduler deals with multiple instances of the task.
This property is read/write.
Syntax
TaskSettings.MultipleInstances As Integer
Property value
TASK_INSTANCES_POLICY constants.
Value | Meaning |
---|---|
|
Starts a new instance while an existing instance of the task is running. |
|
Starts a new instance of the task after all other instances of the task are complete. |
|
Does not start a new instance if an existing instance of the task is running. |
|
Stops an existing instance of the task before it starts new instance. |
Remarks
When reading or writing XML for a task, this setting is specified in the MultipleInstancesPolicy element of the Task Scheduler schema.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2008 [desktop apps only] |
Type library |
|
DLL |
|