THE WORLD'S LARGEST WEB DEVELOPER SITE

ASP IsRootFolder Property


❮ Complete Folder Object Reference

The IsRootFolder property returns true if the specified folder is the root folder and false if not.


Syntax

FolderObject.IsRootFolder

Example

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

❮ Complete Folder Object Reference