tutorial pengembangan web terbaru
 

ASP IsRootFolder Property


<Complete Reference Folder Obyek

Properti IsRootFolder mengembalikan true jika folder tertentu adalah folder root dan false jika tidak.

Sintaksis

FolderObject.IsRootFolder

Contoh

<%
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 Reference Folder Obyek