Programming with Reflection

image\rwnprg32.gif ZmodemReceiveFile method

 

Syntax object.ZmodemReceiveFile LocalFile, [RemoteFile], [TransferType], [IfFileExists]

 

Description

Transfers one or more files from the host to the PC, using the Zmodem file transfer protocol.

Arguments

LocalFile Argument Type: String
Required
Specifies the local file name to use for the file. This string can contain drive and path information. It can also be just a folder name or an empty string, in which case the host file name is used to generate a local file name. This string cannot contain wildcard characters.

RemoteFile Argument Type: String
Optional
The host file name. In most situations, the host determines the host file name and you can omit this argument; if you specify a name, it will be ignored.

TransferType Argument Type: Enumeration
Optional
Specifies what type of file is being transferred. The default is rcBinary. The possible values are:

 rcASCII

 Specifies an ASCII file transfer. If the ZmodemTranslateCharacters property is set to True, the following translations are performed:

· Character set translations (as specified on the Emulation tab in the Terminal Setup dialog box).

· Relevant ASCII File Translation options (as specified on the Translation tab in the File Transfer Setup dialog box).

 If ZmodemTranslateCharacters is set to False, record separator characters may still be translated to carriage return/linefeed sequences (if the ConvertSeparatorToEOL property is set to True), and a Ctrl+Z character may still be appended to the end of the file (if the WriteCtrlZAsEOF property is set to True), but no other translations are performed.

 rcBinary

 Binary file transfer. Data in the file is not translated as it is transferred.

IfFileExists Argument Type: Enumeration
Optional
Specifies what to do if the sent file already exists on the PC. The default is rcCancel. The possible values are:

 rcAskUser

 Prompts the user to specify what should be done.

 rcCancel

 Stops the transfer.

 rcDelete

 Deletes (overwrites) the existing file.

 rcAppend

 Appends the data to the existing file.

 rcRename

 Renames the file being transferred if a file of the same name already exists on the destination system. The last three characters of the existing file's name are changed to 001. If such a file already exists, the file's name is changed to 002, and so on, up to 999.

 rcResume

 Resumes a canceled receive. If the file already exists on the PC, Reflection assumes it is there as the result of an aborted transfer. Reflection therefore resumes the transfer at the point of interruption.

 rcUpdate

 Performs the transfers only if the host file is newer than the PC file.

 rcUseRemote

 Uses the IfFileExists option specified by the remote system. If the remote system doesn't specify an IfFileExists , this option is equivalent to rcCancel.

 

image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command