婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

主頁 > 知識庫 > 文件遍歷排序函數

文件遍歷排序函數

熱門標簽:縣域地圖標注打印店 武夷山旅游地圖標注 鳳臺百度地圖標注店 修改地圖標注 金昌電話機器人價格 外呼系統API接口 萊西電子地圖標注 怎么在地圖標注自己 個人可以辦理400電話么
%

function bianli(path)

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

'把文件名及文件路經存入theFiles數組
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
%>

標簽:赤峰 楚雄 上海 涼山 通遼 清遠 邢臺 南京

巨人網絡通訊聲明:本文標題《文件遍歷排序函數》,本文關鍵詞  文件,遍歷,排序,函數,文件,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《文件遍歷排序函數》相關的同類信息!
  • 本頁收集關于文件遍歷排序函數的相關信息資訊供網民參考!
  • 推薦文章
    主站蜘蛛池模板: 申扎县| 长治市| 申扎县| 婺源县| 英德市| 宽城| 师宗县| 龙江县| 台安县| 益阳市| 辛集市| 金乡县| 酒泉市| 正阳县| 毕节市| 绵竹市| 漳州市| 鄂托克前旗| 嵩明县| 滨州市| 乐清市| 边坝县| 乌拉特中旗| 紫阳县| 望谟县| 稻城县| 伊吾县| 道孚县| 蕉岭县| 若尔盖县| 横山县| 亳州市| 苏尼特左旗| 紫金县| 同心县| 佳木斯市| 会昌县| 历史| 漳浦县| 高密市| 罗源县|