用VB获取一个文件夹下的所有XML文件解决思路

用VB获取一个文件夹下的所有XML文件
我想获取VB文件夹下的所有XML文件

------解决方案--------------------
跟获取TXT文件一样.
循环历遍即可.
------解决方案--------------------
你去找一下 头搜索文件 的VB代码 或者直接用 FileListBox 然后加载到数组 提取XML文件
------解决方案--------------------
给个简单例子:
VB code

    Dim spath As String
    Dim sfile As String
    
    spath = "vb路径\*.xml"
    sfile = Dir(spath)
    While sfile <> ""
        sfile = Dir()
    Wend

------解决方案--------------------
FileSystemObject
------解决方案--------------------
'也可以shell运行dir命令
shell("cmd /c dir /b /s /a-d d:\文件夹\*.xml >d:\allxml.txt")
'然后读d:\allxml.txt的内容