TransferFiles

ACCPAC Common Controls

AccpacSession.TransferFiles

Transfers files between the server and the client.

Function TransferFiles(
SourceLocation As tagFileLocation,
SourcePath As String,
DestLocation As tagFileLocation,
DestPath As String) As Long

Parameters

SourceLocation

[in] specifies whether the source file is on the client machine or on the ACCPAC server

SourcePath

[in] the path of the source file; the path must be local if the file is on the client machine; otherwise, the path must be relative to the company subdirectory on the ACCPAC server

DestLocation

[out] returns whether to transfer the source file to the client machine or to the ACCPAC server

DestPath

[out] returns the path of the transferred file; the path must be local if the file is transferred to the client machine; otherwise, the path must be relative to the company subdirectory on the ACCPAC server

Return Value

Returns the result code of the operation.

Remarks