Attachmate.Reflection.Emulation.IbmHosts Namespace > IFileTransfer Interface : INDSendFile Method |
You cannot use wildcard characters to send multiple files, as you can when you use the Transfer screen.
'Declaration
Sub INDSendFile( _ ByVal pcFile As String, _ ByVal hostFile As String, _ ByVal type As INDFileTransferType, _ ByVal fileExistsOption As FileExistsOption, _ ByVal showStatus As Boolean _ )
'Usage
Dim instance As IFileTransfer Dim pcFile As String Dim hostFile As String Dim type As INDFileTransferType Dim fileExistsOption As FileExistsOption Dim showStatus As Boolean instance.INDSendFile(pcFile, hostFile, type, fileExistsOption, showStatus)
void INDSendFile( string pcFile, string hostFile, INDFileTransferType type, FileExistsOption fileExistsOption, bool showStatus )
You cannot use wildcard characters to send multiple files, as you can when you use the Transfer screen.
void SendFileTransfer() { Application app = MyReflection.ActiveApplication; IFrame frame = (IFrame)app.GetObject("Frame"); IView view = (IView)frame.SelectedView; IIbmTerminal terminal = (IIbmTerminal)view.Control; Attachmate.Reflection.Emulation.IbmHosts.IFileTransfer fTransfer = terminal.FileTransfer; fTransfer.XfrHostSys = HostSystem.Tso; fTransfer.INDSendFile(@"C:\Users\Public\Documents\test.txt", "bvtst02.test7.txt", INDFileTransferType.Ascii, FileExistsOption.Overwrite, true); }