<- Back to SMTPit Pro function list
SMTPit_File_Export
- Description
This function will export a file from a container to a specified path. SMTPit Pro will use the name of the file in the container unless you specify a name with the "SaveAs" parameter.
- Return Type
- Text
- Format
- SMTPit_File_Export ( Container ; Path ; SaveAs )
- Required Parameters
- Container
The Container that contains the File you are Exporting.
- Path
The Path to the Folder where you want the Exported File.
- Container
- Optional Parameters
- SaveAs
The File Name you want the Exported File to have.
- SaveAs
- Related Items
- SMTPit_File_Copy, SMTPit_File_Delete, SMTPit_File_Exists, SMTPit_File_GetPath, SMTPit_File_Move, SMTPit_File_Rename, SMTPit_File_SelectFileWithDialog, SMTPit_File_SelectFolderWithDialog, SMTPit_File_Size
- Examples
Example 1
Code:
SMTPit_File_Export( Container ;"c:\exports")Result:
Exports the file in the "Container" field to "c:\exports" on Windows.Example 2
Code:
SMTPit_File_Export( Container ;"/exports/")Result:
Exports the file in the "Container" field to "/exports/" on Mac.Example 3
Code:
SMTPit_File_Export( Container ;"c:\exports";"newexport.txt")Result:
Exports the file in the "Container" field to "c:\exports\newexport.txt".Example 4
Code:
SMTPit_File_Export( Container ;"/exports/";"newexport.txt")Result:
Exports the file in the "Container" field to "/exports/newexport.txt".