Folder Object

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

Members Table

The following table lists the members exposed by the Folder object.

Attributes/Properties

PropertyDescription
Application Contains the folder's Application object.
Parent Not implemented.
ParentFolder Contains the parent Folder object.
Title Contains the title of the folder.

Methods

MethodDescription
CopyHere Copies an item or items to a folder.
GetDetailsOf Retrieves details about an item in a folder. For example, its size, type, or the time of its last modification.
Items Retrieves a FolderItems object that represents the collection of items in the folder.
MoveHere Moves an item or items to this folder.
NewFolder Creates a new folder.
ParseName Creates and returns a FolderItem object that represents a specified item.

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.
Tags :


Community Content

yecril
ParseName and WebFolders
If you call ParseName in a Web folder and the relative path is composed of several steps separated by backslash characters, the Parent of the resulting FolderItem resolves incorrectly to the first step.
Make sure you always replace backslash separators with slash separators in relative paths when dealing with Web folders.
Tags :

Page view tracker