Name | SMTPit_File_Copy |
---|
Description | You can use this function to copy a file to a new location.
|
---|
Return Type | Text |
---|
Format | SMTPit_File_Copy ( Source ; Destination ) |
---|
Required Parameters | Source The Path and File Name of the File you want to Copy.
DestinationThe Path to the Folder where you want the Copy. (You can optionally specify a File Name to Rename the File.)
|
---|
Examples | - Example 1
Copies the file "copy.txt" from the "source" folder to the "destination" folder on Mac. SMTPit_File_Copy( "/source/copy.txt" ; "/destination/" )
- Example 2
Copies the file "copy.txt" from the "source" folder to the "destination" folder on Windows. SMTPit_File_Copy( "c:\source\copy.txt" ; "c:\destination\ " )
- Example 3
Copies the file "copy.txt" from the "source" folder to the "destination" folder and renames the file "copied.txt" on Windows. SMTPit_File_Copy( "c:\source\copy.txt" ; "c:\destination\copied.txt" )
- Example 4
Copies the file "copy.txt" from the "source" folder to the "destination" folder and renames the file "copied.txt" on Mac. SMTPit_File_Copy( "/source/copy.txt" ; "/destination/copied.txt" )
- Example 5
Copies the file "list.txt" from the "Documents" folder to the "FileServer" network share on Mac. The network share must be mounted prior to calling this function, as it is unable to mount a share. SMTPit_File_Copy( "/Users/John/Documents/list.txt" ; "/Volumes/FileServer/list.txt" )
|
---|