当前位置: 首页 > 网络学院 > 服务端脚本教程 > ASP > ASP SubFolders 集合
The SubFolders collection returns a collection of all subfolders in a specified folder.
ASP 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: html css asp vbscript |