Renaming a file is such a standard file mangement function supported by every programming language going as far back in antiquity as TRSDOS, FORTRAN and COBOL that it seems odd to me that any modern programming language wouldn't have it. Especially in this era where file storage capacity supports vast numbers of files and files are ubiquitous to almost any application.
Neither Steve nor Margret's code solutions in this thread worked for me, so I guess I have to use my PC to rename the thousands of files my app deals with.
Sub FileMove(SourceFolder As String, SourceFile As String, TargetFolder As String, TargetFile As String) As Boolean
Dim source, target As JavaObject
source.InitializeNewInstance("java.io.File", Array(SourceFolder, SourceFile))
target.InitializeNewInstance("java.io.File", Array(TargetFolder, TargetFile))
Return source.RunMethod("renameTo", Array(target))
End Sub