Skip to content

File_VerCopy

Version copies a directory, including all subdirectories

File_VerCopy(sSourceRoot, sTargetRoot) As Boolean

Source folder for copy. Don’t end the path with a backslash (\).

Target folder for copy. It’s created if it doesn’t exist.

  • Files that don’t exist in the target are copied.
  • An existing file with the extension .exe, .dll, .ocx, .tlb or .scr is 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.
If bStatus Then bStatus = File_Vercopy("C:\CMS", "C:\CapaInstaller")

Scripting Guidelines

File_CopyFile File_CopyTree Constants Package Property Variables