Is there any way to browse and recursively copy/move all files and subdirectories of a directory within the code section? (PrepareToInstall
)
I need to ignore a specific directory, but using xcopy
it ignores all directories /default/
, for example, and I need to ignore a specific only.
The Files
section is executed at a later time when needed.
To recursively copy a directory programmatically use:
Add any filtering you need. See how the
.
and..
are filtered.For an example of use, see my answers to questions: