Property:  Files Collection.Item

object.Item ("filename")

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

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

<%
Code:
Dim filesys, demofolder, filecoll, selectfile
Set filesys = CreateObject("Scripting.FileSystemObject")
Set demofolder = filesys.GetFolder("foldername")
Set filecoll = demofolder.Files
selectfile = filecoll.Item("filename")
%>



Copyright 1999 by Infinite Software Solutions, Inc.
Trademark Information