
The following objects are implemented by the shell for use in scripting and Visual Basic.
| Objects |
| Folder |
| FolderItem |
| FolderItems |
| FolderItemVerb |
| FolderItemVerbs |
| Shell |
| ShellFolderView |
| ShellUIHelper |
| ShellWindows |
The Folder object represents a shell folder. It contains properties and methods that allow you to get information about the folder.
| Properties |
| Methods |
The Folder object has the following properties:
| Application |
| Parent |
| ParentFolder |
| Title |
Contains the Application object of the folder. This is a read-only property.
object.Application
Parameter Description object Required. An object expression that evaluates to a Folder object.
Contains the object's parent object. This is a read-only property.
object.Parent
Parameter Description object Required. An object expression that evaluates to a Folder object.
Contains the parent Folder object. This is a read-only property.
object.ParentFolder
Parameter Description object Required. An object expression that evaluates to a Folder object.
Contains the title of the folder. This is a read-only property.
object.Title
Parameter Description object Required. An object expression that evaluates to a Folder object.
The Folder object has the following methods:
| CopyHere |
| GetDetailsOf |
| Items |
| MoveHere |
| NewFolder |
| ParseName |
Copies an item or items to a folder.
object.CopyHere vItem, [vOptions]
Parameter Description object Required. An object expression that evaluates to a Folder object. This is the folder to which the item or items will be copied. vItem Required. Specifies the item or items to copy. This can be a string that represents a file name, a FolderItem object, or a FolderItems object. vOptions Optional. Specifies options for the copy operation. This can be zero or a combination of the FOF_ flags described under the fFlags member of the SHFILEOPSTRUCT structure.
Retrieves information about an item in a folder.
object.GetDetailsOf vItem, iColumn
Parameter Description object Required. An object expression that evaluates to a Folder object. vItem Required. Specifies the item for which to get the information. This must be a FolderItem object. iColumn Required. An integer value that specifies the information to be retrieved. The information available for an item depends on the folder in which it is displayed. This value corresponds to the zero-based column number that is displayed in a shell view. For an item in the file system, this can be one of the following values:
0 Retrieves the name of the item. 1 Retrieves the size of the item. 2 Retrieves the type of the item. 3 Retrieves the date and time that the item was last modified. 4 Retrieves the attributes of the item. -1 Retrieves the info tip information for the item.
Retrieves a FolderItems object that represents the collection of items in the folder.
object.Items
Parameter Description object Required. An object expression that evaluates to a Folder object.
Moves an item or items to this folder.
object.MoveHere vItem, [vOptions]
Parameter Description object Required. An object expression that evaluates to a Folder object. This is the folder to which the item or items will be moved. vItem Required. Specifies the item or items to move. This can be a string that represents a file name, a FolderItem object, or a FolderItems object. vOptions Optional. Specifies options for the move operation. This can be zero or a combination of the FOF_ flags described under the fFlags member of the SHFILEOPSTRUCT structure.
Creates a new folder.
object.NewFolder bName, [vOptions]
Parameter Description object Required. An object expression that evaluates to a Folder object. This is the folder in which the new folder will be created. bName Required. A string that specifies the name of the new folder. vOptions Optional. This value is not currently used.
Creates and returns a FolderItem object that represents a specified item.
object.ParseName bName
Parameter Description object Required. An object expression that evaluates to a Folder object. This is the folder in which the new folder will be created. bName Required. A string that specifies the name of the item.
The FolderItem object represents an item in a shell folder. It contains properties and methods that allow you to get information about the item.
| Properties |
| Methods |
The FolderItem object has the following properties:
| Application |
| GetFolder |
| GetLink |
| IsBrowsable |
| IsFileSystem |
| IsFolder |
| IsLink |
| ModifyDate |
| Name |
| Parent |
| Path |
| Size |
| Type |
Contains the Application object of the folder item. This is a read-only property.
object.Application
Parameter Description object Required. An object expression that evaluates to a FolderItem object.
Contains the item's Folder object if the item is a folder. This is a read-only property.
object.GetFolder
Parameter Description object Required. An object expression that evaluates to a FolderItem object.
Contains the item's IShellLinkDual object if the item is a shortcut. This is a read-only property.
object.GetLink
Parameter Description object Required. An object expression that evaluates to a FolderItem object.
Indicates if the item can be browsed. This property is TRUE if the item can be browsed or FALSE if not. This is a read-only property.
object.IsBrowsable
Parameter Description object Required. An object expression that evaluates to a FolderItem object.
Indicates if the item is part of the file system. This property is TRUE if the item is part of the file system or FALSE if not. This is a read-only property.
object.IsFileSystem
Parameter Description object Required. An object expression that evaluates to a FolderItem object.
Indicates if the item is a folder. This property is TRUE if the item is a folder or FALSE if not. This is a read-only property.
object.IsFolder
Parameter Description object Required. An object expression that evaluates to a FolderItem object.
Indicates if the item is a shortcut. This property is TRUE if the item is a shortcut or FALSE if not. This is a read-only property.
object.IsLink
Parameter Description object Required. An object expression that evaluates to a FolderItem object.
Contains the date and time that the item was last modified.
object.ModifyDate
Parameter Description object Required. An object expression that evaluates to a FolderItem object.
Contains the name of the item.
object.Name
Parameter Description object Required. An object expression that evaluates to a FolderItem object.
Contains the parent object of the item. This is a read-only property.
object.Parent
Parameter Description object Required. An object expression that evaluates to a FolderItem object.
Contains the full path and name of the item. This is a read-only property.
object.Path
Parameter Description object Required. An object expression that evaluates to a FolderItem object.
Contains the size of the item, in bytes. This is a read-only property.
object.Size
Parameter Description object Required. An object expression that evaluates to a FolderItem object.
Contains a string representation of the item's type. This is a read-only property.
object.Type
Parameter Description object Required. An object expression that evaluates to a FolderItem object.
The FolderItem object has the following methods:
| InvokeVerb |
| Verbs |
Executes a verb on a shell item.
object.InvokeVerb [vVerb]
Parameter Description object Required. An object expression that evaluates to a FolderItem object. vVerb Optional. A string that specifies the verb to be executed. This must be one of the values returned by the item's FolderItemVerb.Name property.
Retrieves the item's FolderItemVerbs object, which is the collection of verbs that can be executed on the item.
object.Verbs
Parameter Description object Required. An object expression that evaluates to a FolderItem object.
The FolderItems object represents the collection of items in a shell folder. It contains properties and methods that allow you to get information about the collection.
| Properties |
| Methods |
The FolderItems object has the following properties:
| Application |
| Count |
| Parent |
Contains the Application object of the folder items collection. This is a read-only property.
object.Application
Parameter Description object Required. An object expression that evaluates to a FolderItems object.
Contains the number of items in the collection. This is a read-only property.
object.Count
Parameter Description object Required. An object expression that evaluates to a FolderItems object.
Contains the parent object of the collection. This is a read-only property.
object.Parent
Parameter Description object Required. An object expression that evaluates to a FolderItems object.
The FolderItems object has the following methods:
| Item |
| _NewEnum |
Retrieves the FolderItem object for a specified item in the collection.
object.Item [index]
Parameter Description object Required. An object expression that evaluates to a FolderItems object. index Optional. Specifies the zero-based index of the item to retrieve. This value must be less than the value of the Count property.
Creates and returns a new FolderItems object that is a copy of this FolderItems object.
object._NewEnum
Parameter Description object Required. An object expression that evaluates to a FolderItems object.
The FolderItemVerb object represents the verbs or commands to which an item in a shell folder responds. It contains properties and methods that allow you to get information about the collection.
| Properties |
| Methods |
The FolderItemVerb object has the following properties:
| Application |
| Name |
| Parent |
Contains the Application object of the object. This is a read-only property.
object.Application
Parameter Description object Required. An object expression that evaluates to a FolderItemVerb object.
Contains the name of the verb. This is a read-only property.
object.Name
Parameter Description object Required. An object expression that evaluates to a FolderItemVerb object.
Contains the parent object of the object. This is a read-only property.
object.Parent
Parameter Description object Required. An object expression that evaluates to a FolderItemVerb object.
The FolderItemVerb object has the following method:
| DoIt |
Executes the verb on the FolderItem associated with the verb.
object.DoIt
Parameter Description object Required. An object expression that evaluates to a FolderItemVerb object.
The FolderItemVerbs object represents the collection of verbs for an item in a shell folder. It contains properties and methods that allow you to get information about the collection.
| Properties |
| Methods |
The FolderItemVerbs object has the following properties:
| Application |
| Count |
| Parent |
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.