คุณสมบัติASP IsRootFolder
❮ อ้างอิงวัตถุโฟลเดอร์ที่สมบูรณ์
คุณสมบัติ IsRootFolder คืนค่า จริง หากโฟลเดอร์ที่ระบุเป็นโฟลเดอร์รูท และเป็นเท็จ หากไม่เป็นเช่นนั้น
ไวยากรณ์
FolderObject.IsRootFolder
ตัวอย่าง
<%
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!
❮ อ้างอิงวัตถุโฟลเดอร์ที่สมบูรณ์