DownloadFile - cFTPTransfer
Downloads the file sRemoteFile from RemoteHost and saves it locally as sLocalFile
Type: Function
Return Data Type: Integer
Parameters
| Parameter | Type | Description |
|---|---|---|
| sRemoteFile | String | File downloaded from RemoteHost |
| sLocalFile | String | This is what the downloaded file is saved as |
Syntax
Function DownloadFile String sRemoteFile String sLocalFile Returns Integer
Call Example
Get DownloadFile sRemoteFile sLocalFile to IntegerVariable
Description
DownloadFile downloads the file sRemoteFile from RemoteHost and saves it locally as sLocalFile.
The file is transferred with BufferSize bytes at the time, and the OnTransferStatus event is triggered after each chunk is transferred.
Return Value
Returns True if successful, False otherwise.