IExecAction::get_WorkingDirectory method (taskschd.h)
Gets or sets the directory that contains either the executable file or the files that are used by the executable file.
This property is read/write.
Syntax
HRESULT get_WorkingDirectory(
BSTR *pWorkingDirectory
);
Parameters
pWorkingDirectory
Return value
None
Remarks
When reading or writing XML, the working directory of the application is specified in the WorkingDirectory 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
Requirement | Value |
---|---|
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 |