IExecAction::put_Path method (taskschd.h)

Gets or sets the path to an executable file.

This property is read/write.

Syntax

HRESULT put_Path(
  BSTR path
);

Parameters

path

Return value

None

Remarks

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

When reading or writing XML, the command-line operation path is specified in the Command element of the Task Scheduler schema.

The path is checked to make sure it is valid when the task is registered, not when this property is set.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header taskschd.h
Library Taskschd.lib
DLL Taskschd.dll

See also

IExecAction

Task Scheduler