Product Logo

SMTPit Pro

A Feature-rich Email plug-in

Functions

SMTPit_File_Rename

NameSMTPit_File_Rename
Description

You can use this function to rename a file.

Return TypeText
FormatSMTPit_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.

Examples
Example 1

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

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

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

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