Folder object

January 7, 2021 · View on GitHub

Represents a Shell folder. This object contains properties and methods that allow you to retrieve information about the folder.

Members

The Folder object has these types of members:

Methods

The Folder object has these methods.

MethodDescription
CopyHereCopies an item or items to a folder.
GetDetailsOfRetrieves details about an item in a folder. For example, its size, type, or the time of its last modification.
ItemsRetrieves a FolderItems object that represents the collection of items in the folder.
MoveHereMoves an item or items to this folder.
NewFolderCreates a new folder.
ParseNameCreates and returns a FolderItem object that represents a specified item.

 

Properties

The Folder object has these properties.

PropertyAccess typeDescription
Application
Read-only
Contains the folder's Application object.
Parent
Read-only
Not implemented.
ParentFolder
Read-only
Contains the parent Folder object.
Title
Read-only
Contains the title of the folder.

 

Remarks

Note


Not all methods are implemented for all folders. For example, the ParseName method is not implemented for the Control Panel folder (CSIDL_CONTROLS). If you attempt to call an unimplemented method, a 0x800A01BD (decimal 445) error is raised.

 

Requirements

RequirementValue
Minimum supported client
Windows 2000 Professional, Windows XP [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
Header
Shldisp.h
IDL
Shldisp.idl