Gli ultimi tutorial di sviluppo web
 

ASP IsRootFolder Property


<Complete Folder Object Reference

La proprietà IsRootFolder restituisce true se la cartella specificata è la cartella principale e falso in caso contrario.

Sintassi

FolderObject.IsRootFolder

Esempio

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