File_VerCopy
Description
Section titled “Description”Version copies a directory, including all subdirectories
Syntax
Section titled “Syntax”File_VerCopy(sSourceRoot, sTargetRoot) As Boolean
Parameters
Section titled “Parameters”sSourceRoot (String)
Section titled “sSourceRoot (String)”Source folder for copy. Don’t end the path with a backslash (\).
sTargetRoot (String)
Section titled “sTargetRoot (String)”Target folder for copy. It’s created if it doesn’t exist.
Remarks
Section titled “Remarks”- Files that don’t exist in the target are copied.
- An existing file with the extension
.exe,.dll,.ocx,.tlbor.scris replaced only if the source file has a higher file version. - Other existing files are replaced only if the source file has a newer modified date.
- Files in the target that don’t exist in the source are kept.
Example
Section titled “Example”If bStatus Then bStatus = File_Vercopy("C:\CMS", "C:\CapaInstaller")Related functions
Section titled “Related functions”File_CopyFile File_CopyTree Constants Package Property Variables