Parent Previous Next


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


 @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.



 //Avoid potential conflict


 //Rename folder and content within

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

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

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