Reflection .NET API
Attachmate.Reflection.Emulation.OpenSystems Assembly / Attachmate.Reflection.Emulation.OpenSystems Namespace / IFileTransfer Interface / ZmodemSendFile Method
Specifies a local file. This string can contain wildcard characters (to send multiple files).
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.
Specifies what type of file is being transferred. The default is TransferTypeOption.Binary. The possible values are: TransferTypeOption.ASCII Specifies an ASCII file transfer. If the XmodemTranslateCharacters 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 XmodemTranslateCharacters 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. TransferTypeOption.Binary Binary file transfer. Data in the file is not translated as it is transferred. TransferTypeOption.AutoDetect 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


In This Topic
    ZmodemSendFile Method
    In This Topic
    Transfers one or more files from the host to the PC, using the Zmodem file transfer protocol.
    Syntax
    'Declaration
     
    
    Function ZmodemSendFile( _
       ByVal localFile As String, _
       ByVal remoteFile As String, _
       ByVal transferOption As TransferTypeOption _
    ) As ReturnCode
    'Usage
     
    
    Dim instance As IFileTransfer
    Dim localFile As String
    Dim remoteFile As String
    Dim transferOption As TransferTypeOption
    Dim value As ReturnCode
     
    value = instance.ZmodemSendFile(localFile, remoteFile, transferOption)

    Parameters

    localFile
    Specifies a local file. This string can contain wildcard characters (to send multiple files).
    remoteFile
    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.
    transferOption
    Specifies what type of file is being transferred. The default is TransferTypeOption.Binary. The possible values are: TransferTypeOption.ASCII Specifies an ASCII file transfer. If the XmodemTranslateCharacters 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 XmodemTranslateCharacters 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. TransferTypeOption.Binary Binary file transfer. Data in the file is not translated as it is transferred. TransferTypeOption.AutoDetect 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
    See Also