Files.RenameFile(string, string, string = 0) shared Rename a file. Arguments oldPath string newPath string Optional pathId string 0 Returns boolean true if the file was renamed, false otherwise. Examples Files.RenameFile – Rename a file.