File_Sync
Description
Section titled “Description”Synchronizes files and directories between two directories
Syntax
Section titled “Syntax”File_Sync(sSourceDir, sTargetDir, iBandwithUtilization, aExcludedDirectories, aExcludedFiles) As Boolean
Parameters
Section titled “Parameters”sSourceDir (String)
Section titled “sSourceDir (String)”Directory that files should be synchronized from
sTargetDir (String)
Section titled “sTargetDir (String)”Directory that files should be synchronized to
iBandwithUtilization (Integer)
Section titled “iBandwithUtilization (Integer)”Bandwith utilization
aExcludedDirectories (Array)
Section titled “aExcludedDirectories (Array)”Directories that should be excluded
aExcludedFiles (Array)
Section titled “aExcludedFiles (Array)”Files that should be excluded
Example
Section titled “Example”Dim aExcludeDir, aExcludeFileaExcludeDir = Array("Printers", "Wallpaper")aExcludeFile = Array("tip.htm", "tips.gif", "bullet.gif")
If bStatus Then bStatus = File_Sync("C:\CapaInstaller", "C:\Web", 100, aExcludeDir, aExcludeFile)