©
本文档使用
php.cn手册 发布
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!