当前位置: 首页 > 网络学院 > 服务端脚本教程 > ASP > ASP SubFolders 集合

ASP
ASP 介绍
ASP Install
ASP 语法
ASP 变量
ASP Procedures
ASP Forms
ASP Cookies
ASP Session
ASP Application
ASP #include
ASP Global.asa
ASP Send e-mail
ASP Response
ASP Request
ASP Application
ASP Session
ASP Server
ASP Error
ASP FileSystem
ASP TextStream

ASP SubFolders 集合


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 302 ::
收藏到网摘: n/a

The SubFolders collection returns a collection of all subfolders in a specified folder.
ASP SubFolders集合的作用是返回一个指定文件夹中所有的二级文件夹集合

Syntax
语法

FolderObject.SubFolders

Example
举例

<%
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

评论 (0) All

登陆 | 还没注册?