Transfers one or more files from the FTP server to a local PC.
Object.ReceiveFile strLocalFile, strRemoteFile [, type] [, disp]
strLocalFile
Argument type: String, Required
Specifies a local file. This string can be empty or can contain just drive and path information, in which case the FTP server file name is used to generate a local file. This string cannot contain wildcard characters.
strRemoteFile
Argument type: String, Required
Specifies an FTP server file. This string can contain wildcard characters (to transfer multiple files). The wildcard characters must be appropriate for the FTP server.
Note: If you are connected to a VMS host, fully qualified path names are not supported. For these hosts, use SetCurrentDirectory to specify a server location.
type
Argument type: Enumeration, Optional
Specifies what type of file is being transferred. The possible values are rcAscii (0), rcBinary (1), and rcSmart (3).
disp
Argument type: Enumeration, Optional
Specifies what to do if the received file already exists on the PC. The possible values are rcOverwrite (1), rcAppend (2), default is rcOverwrite
Files transferred with extensions, .txt;.asp;.ini;.htm;.html;.xml, will be transferred as text (rcAscii) and all others will be transferred as binary (rcBinary).