@FileRename

Parent Previous Next

@FileRename.

Renames or moves the file. Returns true if it succeeds. Otherwise returns false.

Syntax.


 @FileRename(String oldPath, newPath) : Boolean

 


If the targeted destination file already exists, the operation will not succeed.


Arguments:


Example:


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

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

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