Bộ sưu tập thư mục con ASP
❮ Toàn bộ tham chiếu đối tượng thư mục
Bộ sưu tập Thư mục con trả về một tập hợp tất cả các thư mục con trong một thư mục được chỉ định.
Cú pháp
FolderObject.SubFolders
Thí dụ
<%
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
❮ Toàn bộ tham chiếu đối tượng thư mục