Property:  Folders Collection.Item

Implemented in version 2.0
object.Item ("foldername")

This property returns an Item from the collection relating to a specified key (foldername).

The following code shows how to retrieve an item from a Folders collection.

Dim filesys, demofolder, folcoll, selectfolder
Set filesys = CreateObject("Scripting.FileSystemObject")
Set demofolder = filesys.GetFolder("foldername")
Set folcoll = demofolder.SubFolders
selectfolder = folcoll.Item("foldername")

Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information