sub showFolder(strfolder)
dim fso,drvPath,fd,fl,subfd
dim ifd,ifl
dim j
set fso=server.createobject("scripting.filesystemobject")
drvPath=server.mapPath(strfolder)
' Response.write drvpath&"
"
set fd=fso.GetFolder(drvPath)
set subfd=fd.subFolders
'set fl=fd.files
if subfd.count>0 then
for each ifd in subfd
Response.write "
"
Response.write ""& ifd.name&" - "& FormatDateTime(ifd.DateCreated,1)&" - "&showSize(ifd.size)&" - 删除"
Response.write " "
next
End if
set fl=fd.files
if fl.count>0 then
j=1
for each ifl in fl
Response.write "
"
Response.write ""& ifl.name&" - "& formatDateTime(ifl.DateCreated,1)&" - "&showSize(ifl.size)
Response.write " - 删除"
Response.write " "
j=j+1
next
End if
set fso=nothing
End sub