File_RenameFile
Description
Section titled “Description”Renames a specified file
Syntax
Section titled “Syntax”File_RenameFile(sOrgFileName, sNewFileName) As Boolean
Parameters
Section titled “Parameters”sOrgFileName (String)
Section titled “sOrgFileName (String)”Original filename, with full path
sNewFileName (String)
Section titled “sNewFileName (String)”New filename, with full path
Remarks
Section titled “Remarks”- 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.
Example
Section titled “Example”If bStatus Then bStatus = File_RenameFile("C:\CMS.txt", "C:\CapaInstaller.txt")