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

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

问题描述

我正在编写Microsoft word宏,并且在vb.net上遇到困难.请帮忙.

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

推荐答案

查看答案

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

  • 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天全站免登陆