Programming with FTP OLE Automation
ReceiveFile method
Syntax Object.ReceiveFile LocalFile, RemoteFile [,TransferType] [,IfFileExists]
Transfers one or more files from the FTP server to the PC.
LocalFile 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.
RemoteFile 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.
TransferType Argument type: Enumeration
Optional
Specifies what type of file is being transferred. If no value is specified, the client uses the value from the current settings file. The possible values are rcAscii, rcBinary, rcTenex, and rcSmart.
IfFileExists Argument type: Enumeration
Optional
Specifies what to do if the received file already exists on the PC. If no value is specified, the client uses the value from the current settings file. The possible values are rcAskUser, rcOverwrite, rcCancel, rcAppend, rcUnique, rcSkip, and rcUpdate.
get, mget