读取一个目录下所有文件的文件名
日期:2017-06-15
用for each ....in 语句
例如:
<%
set fso=createobject("scripting.filesystemobject")
set folder=fso.getfolder("路径")
set fc=folder.files
for each f in fc
response.write "<tr>"
response.write "<td>"& f.name
response.write "<td>"& f.size
next
%>
例如:
<%
set fso=createobject("scripting.filesystemobject")
set folder=fso.getfolder("路径")
set fc=folder.files
for each f in fc
response.write "<tr>"
response.write "<td>"& f.name
response.write "<td>"& f.size
next
%>