@FileCopy

Parent Previous Next

@FileCopy.

Copies the file to a new destination. Returns true if the file exists and was copied. Otherwise returns false.

Syntax.


 @FileCopy(String sourcePath, targetPath) : Boolean

 


Please note an existing targeted file may be silently overwritten.


Arguments:


Example:


 String fileA := "c:\test\fileA.txt";

 String fileB := "c:\test\fileB.txt";

 Boolean success := @FileCopy(fileA, fileB);