ASP Files 集合
完整的 Folder 對(duì)象參考手冊(cè)
Files 集合返回指定的文件夾中所有文件組成的一個(gè)集合。
語(yǔ)法
實(shí)例
<%
dim fs,fo,x
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fo=fs.GetFolder("c:\test\")
for each x in fo.files
??'Print the name of all files in the test folder
??Response.write(x.Name & "<br>")
next
set fo=nothing
set fs=nothing
%>
輸出:
test_adv.txt
guestbook.txt
links.txt
links2.txt
textads.txt
textfile.txt
完整的 Folder 對(duì)象參考手冊(cè)
更多建議: