asp教程 顯示目錄所有文件
option explicit
dim infopath
dim serverpath
dim objfso
dim objfile
dim objfolder
dim objfoldercontents
dim objfoldercount
dim objfileitem
infopath=request
serverpath=server
set objfso=createobject("scripting
set objfile=objfso
set objfolder=objfile
set objfoldercontents=objfolder
for each objfileitem in objfoldercontents
response
next
set fso = server
if fso
set objfolder = fso
for each objfile in objfolder
response
next
set objfolder = nothing
set fso = nothing
%>
From:http://tw.wingwit.com/Article/program/net/201311/14070.html