Contents Index Topic Contents | ||
Previous Topic: ITask::SetTaskFlags Next Topic: ITaskTrigger |
ITask::SetWorkingDirectory
HRESULT SetWorkingDirectory( LPCWSTR pwszWorkingDirectory );Sets the working directory for the task.
- Returns one of the following values:
S_OK The operation was successful. E_INVALIDARG The arguments are not valid. E_OUTOFMEMORY Not enough memory is available.
- pwszWorkingDirectory
- LPCWSTR that contains a directory path. The application starts with this directory as the current working directory. To clear the directory, set pwszWorkingDirectory to L"". If the working directory is set to L"", when the application is run, the current directory will be the directory in which the task scheduler service executable, Mstask.exe, resides.
See also ITask::GetWorkingDirectory
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.