Copies the contents of one file (source) to another file (destination).

Namespace: PPJ.Runtime
Assembly: PPJ.Runtime.2 (in PPJ.Runtime.2.dll) Version: 2.0.1044.0 (2.0.1044.5276)

Syntax

C#
public static SalNumber Copy(
	SalString sSourcePath,
	SalString sDestPath,
	SalBoolean bOverWrite
)

Parameters

sSourcePath
Type: PPJ.Runtime..::..SalString
The full path name of the source file.
sDestPath
Type: PPJ.Runtime..::..SalString
The full path name of the destination file.
bOverWrite
Type: PPJ.Runtime..::..SalBoolean
Specifies whether (TRUE) or not (FALSE) to overwrite the destination file. If the destination file already exists and bOverWrite is FALSE, then SalFileCopy fails, and returns FILE_CopyExist. If the destination file already exists and bOverWrite is TRUE, then SalFileCopy succeeds and the destination file is overwritten.

Return Value

nStatus

See Also