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

解决方案 »

  1.   

    跟获取TXT文件一样.
    循环历遍即可.
      

  2.   

    你去找一下 头搜索文件 的VB代码 或者直接用 FileListBox 然后加载到数组 提取XML文件
      

  3.   

    给个简单例子:    Dim spath As String
        Dim sfile As String
        
        spath = "vb路径\*.xml"
        sfile = Dir(spath)
        While sfile <> ""
            sfile = Dir()
        Wendlz参照自己改改吧。
      

  4.   

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