IsRootFolder

ASP IsRootFolder 属性


IsRootFolder 属性返回指定的文件夹是否为根文件夹。如果是,返回 True,否则返回 False。

语法

FolderObject.IsRootFolder

实例

<%
dim fs,fo
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fo=fs.GetFolder("c:\asp\test")
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
%>

输出:

The folder is not the root folder!
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3