tutorial pengembangan web terbaru
 

ASP subfolder Koleksi


<Complete Reference Folder Obyek

Subfolder koleksi mengembalikan koleksi semua subfolder di folder tertentu.

Sintaksis

FolderObject.SubFolders

Contoh

<%
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

<Complete Reference Folder Obyek