当前位置: 首页 > 网络学院 > 服务端脚本教程 > ASP > ASP IsRootFolder 属性

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 IsRootFolder 属性


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

The IsRootFolder property returns true if the specified folder is the root folder and false if not.
ASP IsRootFolder属性的作用是:如果指定的目录是根目录(如:C:或D:),则返回True逻辑真;如果不是根目录文件夹,则返回False逻辑假。

Syntax
语法

FolderObject.IsRootFolder

Example
举例

<%
dim fs,fo
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fo=fs.GetFolder("c:asptest")
if fo.IsRootFolder=true then Response.Write("The folder is the root folder!")
else Response.Write("The folder is not the root folder!")
end if
set fo=nothing
set fs=nothing
%>
Output:
The folder is not the root folder!

评论 (0) All

登陆 | 还没注册?