欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

asp遍歷目錄及子目錄的函數(shù)

 更新時(shí)間:2008年07月22日 08:54:21   作者:  
asp遍歷目錄以及目錄下文件的函數(shù)- 從網(wǎng)上找的不過(guò)都用不了,自己用Emeditor修正了一下
<%@ Language=vbscript %> 
<% 
 '遍歷目錄以及目錄下文件的函數(shù) 
%> 
<% 
  Function Bianli(path) 
    Set Fso=server.createobject("scripting.filesystemobject")   

    On Error Resume Next 
    Set Objfolder=fso.getfolder(path) 

    Set Objsubfolders=objfolder.subfolders 

    For Each Objsubfolder In Objsubfolders 

      Nowpath=path + "\" + Objsubfolder.name 

      Response.write Nowpath 

      Set Objfiles=objsubfolder.files 

      For Each Objfile In Objfiles 
        Response.write "<br>---" 
        Response.write Objfile.name 
      Next 
      Response.write "<p>" 
      Bianli(nowpath)'遞歸 

    Next 
    Set Objfolder=nothing 
    Set Objsubfolders=nothing 
    Set Fso=nothing 
  End Function 
%> 
<% 
  Bianli("D:") '遍歷d:盤 
%>

相關(guān)文章

最新評(píng)論