info.mailtraq.com > Management > Script Functions A-Z > RenameFile() RenameFile()Renames the specified disk file. If the existing file cannot be found no action is taken. Note that partial and full path specifications cannot be mixed between the two parameters.
RenameFile( file , newfile )
- file
- The full path to the existing file. If no path is specified Mailtraq assumes the file exists in its \database folder
- newfile
- The full path for the new filename. If no path is specified Mailtraq creates the file exists in its \database folder
//Example usage
RenameFile("c:\data\oldname.txt", "c:\reports\newname.txt") |