如何列出给定文件夹的所有文件(通过子文件夹递归)? [英] 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.
推荐答案
查看答案 此处 - VB6 几乎与 VBA 相同.
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屋!
查看全文