SMTPit Pro

Next Generation Email plug-in

<- Back to SMTPit Pro function list

SMTPit_File_Move

Description

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

Return Type
Text
Format
SMTPit_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.)

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

Example 1

Code:

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

Result:

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

Example 2

Code:

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

Result:

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

Example 3

Code:

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

Result:

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

Example 4

Code:

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

Result:

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