Attachmate.Reflection.Emulation.IbmHosts Assembly > Attachmate.Reflection.Emulation.IbmHosts Namespace > IFileTransfer Interface : INDReceiveFile Method |
'Declaration
Sub INDReceiveFile( _ 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.INDReceiveFile(pcFile, hostFile, type, fileExistsOption, showStatus)
void INDReceiveFile( string pcFile, string hostFile, INDFileTransferType type, FileExistsOption fileExistsOption, bool showStatus )
If you're having trouble getting a transfer to work, make sure the XfrHostSys property is set to the appropriate value.
void ReceiveFileTransfer() { 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.INDReceiveFile(@"C:\Users\Public\Documents\countReceived.txt", "count.txt", INDFileTransferType.Ascii, FileExistsOption.Append, true); }