如何列出给定文件夹的所有文件(通过子文件夹递归)? [英] How to list all files of a given folder (recursively through sub-folder)?

查看:20
本文介绍了如何列出给定文件夹的所有文件(通过子文件夹递归)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个 microsoft word 宏并且在使用 vb.net 时遇到了困难.请帮忙.

I'm writing a microsoft word macro and having difficulty with vb.net. Please help.

推荐答案

查看答案 此处 - VB6 几乎与 VBA 相同.

Check out the answers here - VB6 is almost identical to VBA.

  • 如果您想使用 FileSystemObject
  • 或者你可以只放入 CDirDrill 类,这意味着您不需要任何外部引用.
  • You will need to add a reference to the Microsoft Scripting Runtime if you want to use FileSystemObject
  • Or you can just drop in the CDirDrill class which means you won't need any external references.

这篇关于如何列出给定文件夹的所有文件(通过子文件夹递归)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆