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!