Folders Collection

The Folders collection represents all the folders that exist within the current folder on a particular drive. To retrieve information from subfolders, you must access the Folders collection returned from a call to the SubFolders property of a Folder object. The Folders collection's properties are shown in Table 19.11, while its single method appears in Table 19.12.

Table 19.11. Folders Collection Properties

Property

Description

Count

The total number of folders in the current collection.

Item

Returns a reference to a particular folder in the collection. The Item property is similar to the same property of the Application and Session Contents collections. You can retrieve a specific Folder object using its index in the Folders collection or its name.

Table 19.12. Folders Collection Methods

Method

Description

Add

Adds a new folder to the Folders collection

Get ASP in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.