SubFolders
サブフォルダ情報取得
文法
Folderオブジェクト.SubFolders
機能説明
サブフォルダ情報をFoldersコレクションで取得
使用例
<%
Dim objFs, objFl, objFld, i, objFldCol
Set objFs = Server.CreateObject("Scripting.FileSystemObject")
Set objFld = objFs.GetFolder("D:\test")
Set objFldCol = objFld.SubFolder
'パターン1
Response.Write objFldCol.Item("test1").Name & "
" & vbCrlf
'パターン2
Set objFl = objFldCol.Item("test1").
Response.Write objFl.Name & "
" & vbCrlf
'パターン3
For Each i in objFldCol
Response.Write i.Name & "
" & vbCrlf
Next
'オブジェクトを開放
Set objFldCol = Nothing
Set objFld = Nothing
Set objFl = Nothing
Set objFs = Nothing
%>
Topへ