immobili ASP IsRootFolder
Proprietà IsRootFolder restituisce la cartella specificata è la cartella principale. Se è così, restituisce True, altrimenti False.
grammatica
FolderObject.IsRootFolder
Esempi
<%
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!
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!
Completa Cartella Object Reference