ÄúµÄλÖãº
Ñ°ÃÎÍøÊ×Ò³
£¾
±à³ÌÀÖÔ°
£¾
VBScript
£¾
VBScript
objects
constants
operators
statements
functions
properties
methods
All Properties
Files Collection Object
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")
%>