最新的Web开发教程
 

ASP IsRootFolder Property


<完整文件夹对象参考

如果指定的文件夹是根文件夹,如果不是假的IsRootFolder属性返回true。

句法

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

Output:

The folder is not the root folder!

<完整文件夹对象参考