Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个充满 xml 文件的文件夹,它们的格式都相同,但文件名不同且不断变化
我想知道是否有一种方法可以让 Visual Basic 浏览所有可用文件,以便从所有文件中提取数据?
Dim di As System.IO.DirectoryInfo = New System.IO.DirectoryInfo("C:\Some Directory") Dim xmlFiles As System.IO.FileInfo() = di.GetFiles("*.xml") For Each xmlFile As System.IO.FileInfo In xmlFiles ' do some data processing here Next