Action.Type Property

For scripting, gets the type of the action.

Syntax

VBScript
Property Type As Integer

Property Value

This property returns one of the following TASK_ACTION_TYPE enumeration constants.

ValueMeaning
TASK_ACTION_EXEC
0

This action performs a command-line operation. For example, the action could run a script, launch an executable, or, if the name of a document is provided, find its associated application and launch the application with the document.

TASK_ACTION_COM_HANDLER
5

This action fires a handler.

TASK_ACTION_SEND_EMAIL
6

This action sends an e-mail.

TASK_ACTION_SHOW_MESSAGE
7

This action shows a message box.

 

Remarks

The action type is defined when the action is created and cannot be changed later. For information on creating an action, see ActionCollection.Create.

For information on how actions and tasks work together, see Task Actions.

Requirements

Minimum supported clientWindows Vista
Minimum supported serverWindows Server 2008
Type LibraryTaskschd.tlb
DLLTaskschd.dll

See Also

TASK_ACTION_TYPE
Task Scheduler
Action

Send comments about this topic to Microsoft

Build date: 11/12/2009

Tags :


Page view tracker