Skip to content

File_RenameFile

Renames a specified file

File_RenameFile(sOrgFileName, sNewFileName) As Boolean

Original filename, with full path

New filename, with full path

  • The original file must exist. If it doesn’t, the function returns False.
  • If a file with the new name already exists, the function returns False.
If bStatus Then bStatus = File_RenameFile("C:\CMS.txt", "C:\CapaInstaller.txt")

Scripting Guidelines

File_RenameDir Constants Package Property Variables