Programming with FTP OLE Automation

image\rwnprg32.gif ReceiveDirectory method

 

Syntax Object.ReceiveDirectory LocalDirectory, RemoteDirectory, [TransferType], [IfFileExists]

 

Description

Copies a directory from the FTP server.

Arguments

LocalDirectory Argument type: String
Required
Specifies a local directory to which the server directory is copied. This string can be empty, in which case the server directory will be copied to the current local directory.

RemoteDirectory Argument type: String
Required
Specifies a directory on the FTP server.

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, rcSkip, and rcUpdate.

FTP Script Equivalent

cpdir