ASP SubFolders 集合
定义和用法
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 & "<br />") Next Set fo=nothing Set fs=nothing %>
Output similar to this:
css html xml asp JavaScript