Files Collection

The Files collection represents the collection of all the files in a Folder object. Its properties are shown in Table 19.5.

Table 19.5. Files Collection Properties

Property

Description

Count

The total number of files in the collection.

Item

Retrieves a particular file from the collection. Again, the Item property is similar to the same property of the Application and Session Contents collections. You can retrieve a specific File object using its index in the collection or its name. For example, either of the following two lines will work:

Set filObj1 = Files(1)

Set filObj2 = Files("help.txt")

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.