ASP SubFolders Collection
❮ อ้างอิงวัตถุโฟลเดอร์ที่สมบูรณ์
คอลเล็กชัน SubFolders ส่งคืนคอลเล็กชันของโฟลเดอร์ย่อยทั้งหมดในโฟลเดอร์ที่ระบุ
ไวยากรณ์
FolderObject.SubFolders
ตัวอย่าง
<%
dim fs,fo,x
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fo=fs.GetFolder("c:\test\")
for each x in fo.SubFolders
'Print the name of all subfolders in the test folder
Response.write(x.Name & "<br>")
next
set fo=nothing
set fs=nothing
%>
Output:
html
css
asp
vbscript
❮ อ้างอิงวัตถุโฟลเดอร์ที่สมบูรณ์