ITaskFolder::DeleteFolder method

Deletes a subfolder from the parent folder.

Syntax


HRESULT DeleteFolder(
  [in]  BSTR folderName,
  [in]  LONG flags
);

Parameters

folderName [in]

The name of the subfolder to be removed. The root task folder is specified with a backslash (\). This parameter can be a relative path to the folder you want to delete. An example of a task folder path, under the root task folder, is \MyTaskFolder. The '.' character cannot be used to specify the current task folder and the '..' characters cannot be used to specify the parent task folder in the path.

flags [in]

Not supported.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

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

ITaskFolder
Task Scheduler
ITaskFolder

 

 

Community Additions

ADD
Show:
© 2014 Microsoft