ITask::SetWorkingDirectoryITask::SetWorkingDirectory*
*Contents  *Index  *Topic Contents
*Previous Topic: ITask::SetTaskFlags
*Next Topic: ITaskTrigger

ITask::SetWorkingDirectory

HRESULT SetWorkingDirectory(
    LPCWSTR pwszWorkingDirectory
);

Sets the working directory for the task.

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

Back to top


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.