@DirRename

Parent Previous Next

@DirRename.

Renames the directory giving it a new path. Returns true if it succeeds. Otherwise returns false.

Syntax.


 @DirRename(String oldPath, newPath) : Boolean

 


A rename operation makes an implicit recursive move of any directories or files within.


WARNING: Please take care not to rename content which is hold up by other applications or is set as the current directory, or else the function may not provide the expected results.


Arguments:


Example:


 //Avoid potential conflict

 @DirSetCurrent("c:\some_other_folder");


 //Rename folder and content within

 String dirA := "c:\test\DirA";

 String dirB := "c:\test\DirB";

 Boolean success := @DirRename(dirA, dirB);