<- Back to POP3it Pro function list
POP3it_File_Copy
- Description
You can use this function to copy a file to a new location.
- Return Type
- Text
- Format
- POP3it_File_Copy ( Source ; Destination )
- Required Parameters
- Source
The Path and File Name of the File you want to Copy.
- Destination
The Path to the Folder where you want the Copy. (You can optionally specify a File Name to Rename the File.)
- Source
- Related Items
- POP3it_File_Delete, POP3it_File_Exists, POP3it_File_Export, POP3it_File_Import, POP3it_File_Move, POP3it_File_Rename, POP3it_File_SelectFileWithDialog, POP3it_File_Size
- Examples
Example 1
Code:
POP3it_File_Copy("/source/copy.txt";"/destination/")Result:
Copies the file "copy.txt" from the "source" folder to the "destination" folder on Mac.Example 2
Code:
POP3it_File_Copy("c:\source\copy.txt";"c:\destination")Result:
Copies the file "copy.txt" from the "source" folder to the "destination" folder on Windows.Example 3
Code:
POP3it_File_Copy("c:\source\copy.txt";"c:\destination\copied.txt")Result:
Copies the file "copy.txt" from the "source" folder to the "destination" folder and renames the file "copied.txt" on Windows.Example 4
Code:
POP3it_File_Copy("/source/copy.txt";"/destination/copied.txt")Result:
Copies the file "copy.txt" from the "source" folder to the "destination" folder and renames the file "copied.txt" on Mac.