Windows Dev Center

IExecAction::WorkingDirectory property

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 put_WorkingDirectory(
  [in]  BSTR workingDirectory
);

HRESULT get_WorkingDirectory(
  [out] BSTR *pWorkingDirectory
);

Property value

The directory that contains either the executable file or the files that are used by the executable file.

Error codes

NameMeaning
S_OK

The property value was successfully set or retrieved.

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

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

IExecAction
Task Scheduler
IExecAction

 

 

Community Additions

ADD
Show:
© 2015 Microsoft