掲示板システム
ホーム
アクセス解析
カテゴリ
ログアウト
VB6で絞込み検索を行なうには? (ID:88733)
名前
ホームページ(ブログ、Twitterなど)のURL (省略可)
本文
こんな感じ。 Dim Fso AsFileSystemObject Dim nRootPath As String Dim nPattern As String Dim nFilePathes() As String Dim lIndex As Long Set Fso = CreateObject("Scripting.FileSystemObject") nRootPath = "C:\temp\" nPattern = "*" & m_strDate & "*" nFilePathes() = GetFoldersMostDeep(nRootPath, nPattern) 'フォルダが存在しない場合、UBound(nFilePathes())=0でループが '実行されないので、If文でチェックする必要は無い For lIndex = 1 To UBound(nFilePathes()) Fso.CopyFile nFilePathes(lIndex) & "\*.xls", "c:\temp\" Next lIndex
←解決時は質問者本人がここをチェックしてください。
戻る
掲示板システム
Copyright 2020 Takeshi Okamoto All Rights Reserved.