IExecAction::Path property

Gets or sets the path to an executable file.

This property is read/write.

Syntax


HRESULT put_Path(
  [in]  BSTR path
);

HRESULT get_Path(
  [out] BSTR *pPath
);

Property value

The path to the executable file to be run by the action.

Error codes

NameMeaning
S_OK

The property value was successfully set or retrieved.

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]

Header

Taskschd.h

Library

Taskschd.lib

DLL

Taskschd.dll

See also

Task Scheduler
IExecAction

 

 

Show: