How to list all files of a given folder (recursively through a subfolder)?

I am writing a macro of Microsoft words and am having difficulty with vb.net. Please, help.

+3
source share
4 answers

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

  • You will need to add a link to the Microsoft Scripting Runtime executable if you want to use FileSystemObject
  • Or you can simply remove the CDirDrill class, which means you don't need external links.
+2
source

The Word macro is usually written in VBA, not in VB.Net, I assume you meant VBA?

FileSystemObject , "" . :

http://www.java2s.com/Code/VBA-Excel-Access-Word/File-Path/RecursiveSearchusingtheFileSystemObjectModel.htm

VB.Net, , System.IO.Directory, FileSystemObject.

+1

FileSystemObject. , ​​ .

0
source

Personally, I use ASAP Utilities for this:

AS SOON AS POSSIBLE

0
source

All Articles