This method sends an array of files to each destination server defined for the project.
Syntax
ReplicationClient.SendFiles(FileArray)
Parameters
FileArray
The array of files to replicate. The file paths should not include a full path, but should be relative to the project.
Remarks
You must have Site Server Publishing administrator privileges on the server to call this method.
If a connection has already been established, this method sends the files. Otherwise, it connects, sends the files, and disconnects, committing the files. If transaction processing is turned on at the destinations, then the file transaction is not applied until either a Commit or Disconnect is called.
Since this method does not go through the Content Deployment server on the source machine, the replication information is not logged on the source.
Note You cannot run both the SendFiles method and a replication on a source machine at the same time. If you attempt to run both, Content Deployment refuses and issues an error message.
Example
The following example sends the files Newfile1.htm through Newfile10.htm to Project1's destination servers.
Option Explicit
On Error Resume Next
const NumFiles = 10
dim Client
set Client = CreateObject("CrsApi.ReplicationClient")
Client.Initialize("Project1")
dim i, FileList[NumFiles - 1]
for i = 0 to NumFiles
FileList[i] = "Newfile" & i & ".htm"
next
Client.SendFiles FileList
'Release Client object
set Client = Nothing
See Also
DeleteFile, GetExtendedErrorInfo, SendFile, ReplicationProject.EnumDestination