Attachmate.Reflection.Objects.Emulation.IbmHosts Library > FileTransfer Object : INDSendFile Method |
object.INDSendFile( _ ByVal pcFile As String, _ ByVal hostFile As String, _ ByVal type As INDFileTransferType, _ ByVal fileExistsOption As FileExistsOption, _ ByVal showStatus As Boolean _ )
Exception | Description |
---|---|
System.InvalidOperationException | The exception that is thrown when a method call is invalid for the object's current state. |
Sub FileTransferSendSample() path = Environ$("USERPROFILE") & "\Documents\Micro Focus\InfoConnect\" & "test.txt" 'Set the configuration to TSO ThisIbmTerminal.FileTransfer.XfrHostSys = HostSystem_Tso ThisIbmTerminal.FileTransfer.INDSendFile path, "bvtst02.test7.txt", INDFileTransferType_Ascii, FileExistsOption_Overwrite, True End Sub