Dim fso, theFolder, f1, fileCol, S Dim folderName As String Dim theFileType As String Dim curFile As String ' In order to search for specific file types, you need to evaluate ' the files collection for files with a specific file description. ' This description can be found within Windows Explorer under the ' "Type" column theFileType = "ESRI ArcMap Document" 'Add Type description here folderName = "S:\GIS_Data\Users\Engineering\Projects\2010_PROJECTS" 'Add your path here Set fso = CreateObject("Scripting.FileSystemObject") Set theFolder = fso.GetFolder(folderName) Set fileCol = theFolder.Files For Each f1 In fileCol curFile = f1.Name If f1.Type = theFileType Then 'Enter custom code here Dim File2 As String File2 = curFile frm_Outfalls_Images.ListBox1.AddItem (File2) End If Next 'MsgBox File2 frm_Outfalls_Images.Show
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.