| 网站首页 | 资讯 | 影音 | 图片 | 论坛 | 模拟驾考 | 免费取名算命 | 瓷都工具 | 留言本 | 域名 | 瓷都商城 | 汇款 | 
|
閻犙冨椤斿棙锛冮弽顓溾偓锟�
|
闁伙紕鍏橀崗妯侯嚗瀹勬澘顕�
|
缂佹梹鐟ラ崬鎾棘娴煎瓨顦�
|
鐟滄媽绮鹃~瀣礈瑜庨崕锟�
|
婵懓鈧喐绨犲☉鎾寸墱閺咃拷
|
缂傚啯鍨圭划鍫曞棘閸ャ劍鍠�
|
闁告稏鍔嶅Σ妤呭礂椤愩垹鎹�
|
闁轰焦鐟ч埢濂稿箮閳ь剙顔忛敓锟�
|
闁规潙銇樻鍥ㄧ┍閳╁啩绱�
|
您现在的位置: 瓷都热线|诚信中国:“一就是一”(1941.CN) >> 资讯 >> 教程技巧0 >> 网络编程 >> 正文 登录 注册
专 题 栏 目
  • 閸ユ稑绐涘Ч璺虹獩8.0缁狙冨繁闂囷拷
  • 閺堝搫濮╂潪锕傗敋妞硅泛鎲抽懓鍐槸鐠у嫭鏋�
  • 妤傛ǹ鈧啳鐦0妯哄挤缁涙梹顢�
  • 最 新 热 门
    最 新 推 荐
    相 关 文 章
    Windows2003下提高FSO的
    FSO专题 : 文本搜索
    Microsoft Windows 2000
    给你的FileSystemObject
    如何在服务器上禁止FSO?
    用ADODB.Stream代替FSO读
    构建免受 FSO 威胁虚拟主
    ASP中FSO对象对IIS WEB服
    一组FSO相关FUNCTION,常
    文件遍历排序函数         ★★★
    文件遍历排序函数
    作者:不详 文章来源:不详 更新时间:2003-12-8 2:32:12
    【声明:转载此信息在于传递更多信息,其内容表达的观点并不代表本站立场,由这些信息所产生的一切后果本站不负任何责任。如果您对本信息有什么意见,欢迎和本站联系,谢谢!】http://CiDu.Net

    <%

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


    声明:以上信息资料大都是网上搜集而来,版权归作者,如有版权问题请留言告知我将马上改正。
    文中所提到的各种观点只是原文观点,各种说法未经一一确认。并不代表本站认可此观点!!
    资讯录入:ahui    责任编辑:ahui 
  • 上一篇资讯:

  • 下一篇资讯:
  • 【字体: 】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
    点击数:656
      网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)
        没有任何评论