RenameFile()
Syntax
Result = RenameFile(OldFileName$, NewFileName$)Description
Rename the old file to the new file. If the Result is 0, the rename has failed.
Its even possible to rename directory names, just use the related path with directory name.
Example:RenameFile("C:\Temp\Test.txt", "C:\Temp\TestNew.txt") ; renaming the Test file in Temp directory RenameFile("C:\Temp\", "C:\TempNew\") ; renaming the Temp directory itself
Supported OS
All