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

主頁(yè) > 知識(shí)庫(kù) > 文件遍歷排序函數(shù)

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

熱門標(biāo)簽:縣域地圖標(biāo)注打印店 武夷山旅游地圖標(biāo)注 鳳臺(tái)百度地圖標(biāo)注店 修改地圖標(biāo)注 金昌電話機(jī)器人價(jià)格 外呼系統(tǒng)API接口 萊西電子地圖標(biāo)注 怎么在地圖標(biāo)注自己 個(gè)人可以辦理400電話么
%

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
%>

標(biāo)簽:赤峰 楚雄 上海 涼山 通遼 清遠(yuǎn) 邢臺(tái) 南京

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《文件遍歷排序函數(shù)》,本文關(guān)鍵詞  文件,遍歷,排序,函數(shù),文件,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問(wèn)題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無(wú)關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《文件遍歷排序函數(shù)》相關(guān)的同類信息!
  • 本頁(yè)收集關(guān)于文件遍歷排序函數(shù)的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    主站蜘蛛池模板: 阿巴嘎旗| 安福县| 合作市| 鄂托克旗| 天气| 固始县| 丹寨县| 长寿区| 尼木县| 大关县| 武强县| 彩票| 启东市| 彰化市| 翼城县| 饶河县| 金门县| 周至县| 新宾| 廊坊市| 东至县| 陈巴尔虎旗| 新昌县| 庆安县| 双流县| 长子县| 渝北区| 枣强县| 沧源| 衡阳市| 浠水县| 佛学| 乌拉特中旗| 达孜县| 武乡县| 华阴市| 贵南县| 天柱县| 武城县| 青阳县| 大田县|