Skip to content

Latest commit

 

History

History
81 lines (46 loc) · 3.91 KB

execaction.md

File metadata and controls

81 lines (46 loc) · 3.91 KB
title description ms.assetid keywords topic_type api_name api_location api_type ms.topic ms.date
ExecAction object
Scripting object that represents an action that executes a command-line operation.
51d2746d-3a90-4e8b-ac2b-d73193b3aa74
execute action Task Scheduler , interface
ExecAction object Task Scheduler
ExecAction object Task Scheduler , described
apiref
ExecAction
taskschd.dll
COM
reference
05/31/2018

ExecAction object

Scripting object that represents an action that executes a command-line operation.

Members

The ExecAction object has these types of members:

Properties

The ExecAction object has these properties.

Property Access type Description
Arguments
Read/write
Gets or sets the arguments associated with the command-line operation.
Id
Read/write
Inherited from the Action object. Gets or sets the identifier of the action.
Path
Read/write
Gets or sets the path to an executable file.
Type
Read-only
Inherited from the Action object. Gets the type of the action.
WorkingDirectory
Read/write
Gets or sets the directory that contains either the executable file or the files that are used by the executable file.

Remarks

If environment variables are used in the Path, Arguments, or WorkingDirectory properties, then the values of the environment variables are cached and used when the Taskeng.exe (the task engine) is launched. Changes to the environment variables that occur after the task engine is launched will not be used by the task engine.

This action performs a command-line operation. For example, the action could run a script or launch an executable.

When reading or writing XML, an execution action is specified in the Exec element of the Task Scheduler schema.

Examples

For more information and example code for this scripting object, see Time Trigger Example (Scripting).

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