InfoConnect for Unisys
KermitSendFile Method


Specifies a local file. This string can contain wildcard characters.
Specifies a file on the remote system. This string cannot contain wildcard characters. If this string is empty, the local file name is used to generate a remote filename.
Specifies what type of file is being transferred. The TransferTypeOption.Binary option is generally appropriate for most transfers, including transfers from bulletin boards. Use TransferTypeOption.ASCII when you're sure you want characters translated. The possible values are: TransferTypeOption.ASCII Specifies an ASCII file transfer. If the KermitTranslateCharacters 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 KermitTranslateCharacters 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 Specifies a binary file transfer. Data in the file is not translated as it is transferred.
Transfers a file from the local computer to the remote system using the Kermit file transfer protocol. There is no IfFileExists option for this method because that aspect of the transfer is controlled by the remote system.
Syntax
'Declaration
 
Function KermitSendFile( _
   ByVal localFile As String, _
   ByVal remoteFile As String, _
   ByVal transferType As TransferTypeOption _
) As ReturnCode
'Usage
 
Dim instance As IFileTransfer
Dim localFile As String
Dim remoteFile As String
Dim transferType As TransferTypeOption
Dim value As ReturnCode
 
value = instance.KermitSendFile(localFile, remoteFile, transferType)

Parameters

localFile
Specifies a local file. This string can contain wildcard characters.
remoteFile
Specifies a file on the remote system. This string cannot contain wildcard characters. If this string is empty, the local file name is used to generate a remote filename.
transferType
Specifies what type of file is being transferred. The TransferTypeOption.Binary option is generally appropriate for most transfers, including transfers from bulletin boards. Use TransferTypeOption.ASCII when you're sure you want characters translated. The possible values are: TransferTypeOption.ASCII Specifies an ASCII file transfer. If the KermitTranslateCharacters 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 KermitTranslateCharacters 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 Specifies a binary file transfer. Data in the file is not translated as it is transferred.
See Also