如何浏览文件夹的文件?

如何利用fso浏览某个文件夹的文件!比如c:\test这个文件夹里的文件。
---------------------------------------------------------------

Set fso = Server.CreateObject(“Scripting.FileSystemObject”)
Set folderpath = fso.GetFolder(“c:\test”)
For Each thing in folderpath.Files
Response.Write(“

 1<p>”&amp;thing)   
 2Next   
 3  
 4\---------------------------------------------------------------   
 5  
 6用循环获得每个子文件夹   
 7然后显示就可以了   
 8如果要获得所有的子文件夹和子文件   
 9就要自己写个递归程序   
10循环调用显示子文件夹的程序   
11\---------------------------------------------------------------   
12  
13给你个例子吧   
14www.redimachine.com/gov/ease.zip</p>
Published At
Categories with Web编程
Tagged with
comments powered by Disqus