Programming with Reflection

image\rwnprg32.gif ZmodemSendFile method

 

Syntax object.ZmodemSendFile LocalFile, RemoteFile, [TransferType]

 

Description

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

Arguments

LocalFile Argument Type: String
Required
Specifies a local file. This string can contain wildcard characters (to send multiple files).

RemoteFile Argument Type: String
Required
Specifies a host file. This string cannot contain wildcard characters. If this string is empty or contains a path but no file name, the local file name is used to generate a host filename.

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, carriage return/linefeed sequences may still be translated to record separator characters (if the ConvertEOLToSeparator property is set to True), and a Ctrl+Z character may still be read as an end-of-file indicator (if the ReadCtrlZAsEOF property is set to True), but no other translations are performed.

 rcAutoDetect

 File transfer type is determined by the file extension. Use these properties to determine which file extensions are linked to which transfer type:

TransferAutoDetectDefaultType

TransferAutoDetectASCIIExtensionList

TransferAutoDetectBinaryExtensionList

 rcBinary

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

 

image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command