Szerkesztés

Megosztás a következőn keresztül:


TaskSettings.Compatibility property

For scripting, gets or sets an integer value that indicates which version of Task Scheduler a task is compatible with.

This property is read/write.

Syntax

TaskSettings.Compatibility As Integer

Property value

Value Meaning
TASK_COMPATIBILITY_AT
0
The task is compatible with the AT command.
TASK_COMPATIBILITY_V1
1
The task is compatible with Task Scheduler 1.0.
TASK_COMPATIBILITY_V2
2
The task is compatible with Task Scheduler 2.0.

Remarks

Task compatibility, which is set through the Compatibility property, should only be set to TASK_COMPATIBILITY_V1 if a task needs to be accessed or modified from a Windows XP, Windows Server 2003, or Windows 2000 computer. Otherwise, it is recommended that Task Scheduler 2.0 compatibility be used because the task will have more features.

Tasks compatible with the AT command can only have one time trigger.

Tasks compatible with Task Scheduler 1.0 can only have a time trigger, a logon trigger, or a boot trigger, and the task can only have an executable action.

For more information about task compatibility, see What's New in Task Scheduler and Tasks.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
Type library
Taskschd.tlb
DLL
Taskschd.dll

See also

TASK_COMPATIBILITY

Task Scheduler