【www.gdgbn.com--面向对象编程】
ASP filesystem SubFolders 对象教程
子收集返回一个集合所有子在一个指定的文件夹。
语法
FolderObject.SubFolders
例如
<% dim fs,fo,x set fs=Server.CreateObject("Scripting.FileSystemObject") set fo=fs.GetFolder("c:\test\")
for each x in fo.SubFolders "Print the name of all subfolders in the test folder Response.write(x.Name & "
") next
set fo=nothing set fs=nothing %>
Output:
html css asp vbscript