萬盛學電腦網

 萬盛學電腦網 >> 網絡編程 >> asp編程 >> asp fso列出所有目錄下文件夾與文件

asp fso列出所有目錄下文件夾與文件

<%
       Set FSO=Server.CreateObject("Scripting.FileSystemObject")
       Set ServerFolder=FSO.GetFolder(Server.MapPath("photo"))
       Set ServerFolderList=ServerFolder.Files
       For Each ServerFileEvery IN ServerFolderList
       %>
              <% =ServerFileEvery.Name %>
       <% Next %>


 

copyright © 萬盛學電腦網 all rights reserved