Thuộc tính ASP IsRootFolder
❮ Tham chiếu đối tượng thư mục hoàn chỉnh
Thuộc tính IsRootFolder trả về true nếu thư mục được chỉ định là thư mục gốc và false nếu không.
Cú pháp
FolderObject.IsRootFolder
Thí dụ
<%
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!
❮ Tham chiếu đối tượng thư mục hoàn chỉnh