OBJECT: Files Collection
Implemented in version 3.0
collection contains a set of
objects and is usually stored as a property of another object, such as a
The following code demonstrates how to get a
collection and list the contents in the browser.
Dim filesys, demofolder, fil, filecoll, filist
Set filesys = CreateObject("Scripting.FileSystemObject")
Set demofolder = filesys.GetFolder("foldername")
Set filecoll = demofolder.Files
For Each fil in filecoll
filist = filist & fil.name
filist = filist & "<BR>"
Returns an integer that tells us how many
objects there are in the collection.
property allows us to retreive the value of an item in the collection designated by the specified
argument and also to set that value by using
[ = itemvalue]
Copyright 1999-2004 by Infinite Software Solutions, Inc. All rights reserved.