Product Logo

SMTPit Pro

Next Generation Email plug-in

Functions

SMTPit_File_Move

NameSMTPit_File_Move
Description

You can use this function to move a file to a new location.

Return TypeText
FormatSMTPit_File_Move ( Source ; Destination )
Required Parameters
Source

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

Destination

The Path to the Folder where you want the File. (You can optionally specify a File Name to Rename the File.)

Examples
Example 1

Moves the file "move.txt" from the "source" folder to the "destination" folder on Mac.

SMTPit_File_Move( "/source/move.txt" ; "/destination/" )
Example 2

Moves the file "move.txt" from the "source" folder to the "destination" folder on Windows.

SMTPit_File_Move( "c:\source\move.txt" ; "c:\destination\ " )
Example 3

Moves the file "move.txt" from the "source" folder to the "destination" folder and renames the file "moved.txt" on Windows.

SMTPit_File_Move( "c:\source\move.txt" ; "c:\destination\moved.txt" )
Example 4

Moves the file "move.txt" from the "source" folder to the "destination" folder and renames the file "moved.txt" on Mac.

SMTPit_File_Move( "/source/move.txt" ; "/destination/moved.txt" )