最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

文件遍歷排序函數(shù)

 更新時間:2006年10月28日 00:00:00   作者:  
<%

function bianli(path)

'initiate
path = server.mappath(path)
set fso=server.CreateObject("scripting.filesystemobject")
set objFolder=fso.GetFolder(path)
set objfiles = objfolder.files

'把文件名及文件路經(jīng)存入theFiles數(shù)組
int slot = 0
Dim theFiles()
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
if slot > UBound(theFiles) then
ReDim Preserve theFiles(Slot+20)
end if
next
ReDim Preserve theFiles(slot)


'冒泡排序
for i = 0 to UBound(theFiles)-2
for j = i+1 to UBound(theFiles)-1
if strComp(theFiles(i),theFiles(j)) = 1 then
tmp = theFiles(i)
theFiles(i) = theFiles(j)
theFiles(j) = tmp
end if
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='../../images/arrow_orange.gif' width='14' height='11'>
<a href='<%=filepath%>'><span class="activelink_yellow"><%=filename%></span></a>
</p>
<%
next
end function
%>

相關文章

最新評論

田东县| 崇左市| 工布江达县| 涞源县| 克拉玛依市| 大城县| 营山县| 卢龙县| 郯城县| 孝昌县| 安仁县| 虹口区| 伊金霍洛旗| 汝南县| 建阳市| 华安县| 萨迦县| 巫溪县| 新闻| 西和县| 海城市| 锡林郭勒盟| 靖宇县| 新余市| 绥芬河市| 利辛县| 长岛县| 宽甸| 衡阳市| 招远市| 文山县| 铜陵市| 福贡县| 自治县| 武陟县| 北海市| 大连市| 尉犁县| 舟曲县| 乌审旗| 基隆市|