<%
function bianli(path)
\'initiate
path = server.mappath(path)
![](/icons/7633set.gif)
![](/icons/7633set.gif)
![](/icons/7633set.gif)
\'把文件名及文件路经存入theFiles
![](/icons/7633shuzu.gif)
![](/icons/7633int.gif)
Dim theFiles
![](/icons/7633kh.gif)
redim theFiles(50)
for each objFile in objFiles
filename = objFile.name
filePath = split(objFile.path,\"docs\\\")
thepath1 = \"./docs/\"
thepath = thepath1 & filepath(1)
theFiles(slot) = filename&\"**\"&thepath
slot = slot + 1
![](/icons/7633if.gif)
ReDim Preserve theFiles(Slot+20)
end
![](/icons/7633if.gif)
next
ReDim Preserve theFiles(slot)
\'冒泡排序
for i = 0 to UBound(theFiles)-2
for j = i+1 to UBound(theFiles)-1
![](/icons/7633if.gif)
tmp = theFiles(i)
theFiles(i) = theFiles(j)
theFiles(j) = tmp
end
![](/icons/7633if.gif)
next
next
\'输出
for i = 0 to UBound(theFiles)-1
para = theFiles(i)
filename = split(para,\"**\",-1,1)(0)
filepath = split(para,\"**\",-1,1)(1)
%>
<p align = \"left\">
---<img src=\"http://127.0.0.1/Files/BeyondPic/2007-4/19/0741912542640368.g
![](/icons/7633if.gif)
<a href=\'<%=filepath%>\'><span
![](/icons/7633class.gif)
</p>
<%
next
end function
%>
最新评论