如何列出给定文件夹的所有文件(通过子文件夹递归列出)? [英] How to list all files of a given folder (recursively through sub-folder)?
本文介绍了如何列出给定文件夹的所有文件(通过子文件夹递归列出)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在编写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.
- 如果要插入 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屋!
查看全文