SMTPit Pro

Next Generation Email plug-in

<- Back to SMTPit Pro function list

SMTPit_File_Rename

Description

You can use this function to rename a file.

Return Type
Text
Format
SMTPit_File_Rename ( File ; NewName )
Required Parameters
  • File

    The Path and File Name of the File you want to Rename.

  • NewName

    The New Name for the File.

Related Items
SMTPit_File_Copy, SMTPit_File_Delete, SMTPit_File_Exists, SMTPit_File_Export, SMTPit_File_GetPath, SMTPit_File_Move, SMTPit_File_SelectFileWithDialog, SMTPit_File_SelectFolderWithDialog, SMTPit_File_Size
Examples

Example 1

Code:

SMTPit_File_Rename("/Images/rename.jpg";"renamed.jpg")

Result:

Renames the file "rename.jpg" to "renamed.jpg" on Mac.

Example 2

Code:

SMTPit_File_Rename("c:\images\rename.jpg";"renamed.jpg")

Result:

Renames the file "rename.jpg" to "renamed.jpg" on Windows.