IFileTransfer emcompass several file transfers implemented with different file transfer protocols such as FTP, Kermit, XModem and ZModem." />
Reflection
IFileTransfer Interface Methods

For a list of all members of this type, see IFileTransfer members.

Public Methods
 NameDescription
 MethodAbortTransferAborts a file transfer in progress (for any of the supported transfer protocols: Kermit, WRQ/Reflection, Xmodem, or Zmodem) without communicating with the host program. This method is more drastic than CancelTransfer, and may leave the host in an unpredictable state. Use AbortTransfer only if you believe the host transfer program has stopped responding; otherwise use CancelTransfer. This method is not likely to be useful in a macro because all transfer methods must complete execution before subsequent commands are executed. AbortTransfer can be useful for mapping to custom items such as toolbar buttons, keystrokes or events. You could also use this method if you are using Automation to control Reflection. For example, you could use stand-alone Visual Basic .NET to create a form with an Abort button to abort a transfer in progress.  
 MethodCancelTransferAttempts to cancel a file transfer in progress (for any of the supported transfer protocols: Kermit, WRQ/Reflection, Xmodem, or Zmodem) by shutting down the host program. Use AbortTransfer if you think the host program has stopped responding. This method is not likely to be useful in a macro because all transfer methods must complete execution before subsequent commands are executed. AbortTransfer can be useful for mapping to custom items such as toolbar buttons, keystrokes or events. You can also use this method if you are using Automation to control Reflection. For example, you could use stand-alone Visual Basic .NET to create a form with a Cancel Transfer button to cancel a transfer in progress.  
 MethodFTPGetCurrentHostDirectoryReturns the current host directory used for FTP file transfers. This method is only valid when Reflection is connected to the host FTP server; use FTPStartServer to connect to the server before using this method.  
 MethodFTPReceiveFileTransfers one or more files from the host to the PC using FTP (file transfer protocol). Use FTPStartServer to connect to the host server before using this method. Use FTPStopServer to disconnect from the host server after file transfer is complete.  
 MethodFTPSendFileTransfers one or more files from the PC to the host using FTP file transfer protocol. Use FTPStartServer to connect to the host server before using this method. Use FTPStopServer to disconnect from the host server after file transfer is complete.  
 MethodFTPSetCurrentHostDirectorySets the current host directory used for FTP file transfers. This method is only valid when Reflection is connected to the host FTP server; use FTPStartServer to connect to the server before using this method.  
 MethodFTPStartServerConnects to a host server in preparation for FTP file transfers. Use FTPSendFile and FTPReceiveFile to transfer files. Use FTPStopServer to disconnect from the host FTP server. If your settings file is not already configured for FTP protocol, use TransferDefaultProtocol to set the transfer protocol, and TransferPreset to set the host server type. Most menu commands and all toolbar buttons are disabled when Reflection is in server mode.  
 MethodFTPStopServerDisconnects from a host server connected by FTPStartServer.  
 MethodKermitReceiveFileTransfers one or more files from a remote computer running a Kermit program to the local computer, using the Kermit file transfer protocol.  
 MethodKermitSendFileTransfers 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.  
 MethodKermitStartServerStarts a remote Kermit program in server mode. The command used to start the server is defined by the KermitServerStartupCommand property. If that command fails to start the remote Kermit program, this method will still set the local flag indicating that the remote program is in server mode.  
 MethodKermitStopServerInstructs a remote Kermit program running in server mode to shut down.  
 MethodStartTransferLoggingInitiates file transfer logging. When TransferLoggingEnabled is True (the default value), Reflection stores file transfer information to a log file specified by the TransferLogFileName property. Use StopTransferLogging method to stop logging.  
 MethodStopTransferLoggingStops file transfer logging. When TransferLoggingEnabled is True (the default value), Reflection stores file transfer information to a log file specified by the TransferLogFileName property. Use StartTransferLogging method to start logging.  
 MethodTransmitFileTransmits the specified file to the host. If the ReadTabAsSpaces property is True and the TransmitFilesOption.NoTranslation option is not specified, tab characters in the file are converted to spaces as they are transmitted to the host. If the ReadCtrlZAsEOF property is True and the TransmitFilesOption.NoTranslation option is not specified, a Ctrl+Z character in the file will terminate the method.  
 MethodWRQReceiveFileTransfers one or more files from the host to the PC using the WRQ/Reflection file transfer protocol.  
 MethodWRQSendFileTransfers one or more files from the PC to the host using the WRQ/Reflection file transfer protocol.  
 MethodWRQStartServerStarts the WRQ/Reflection protocol host server in preparation for multiple file transfers. Most menu commands and all toolbar buttons are disabled when Reflection is in server mode.  
 MethodWRQStopServerStops the WRQ/Reflection protocol host server started by WRQStartServer.  
 MethodXmodemReceiveFileTransfers a file from the host to the PC, using the Xmodem file transfer protocol.  
 MethodXmodemSendFileTransfers a file from the PC to the host, using the Xmodem file transfer protocol.  
 MethodZmodemReceiveFileTransfers one or more files from the host to the PC, using the Zmodem file transfer protocol.  
 MethodZmodemSendFileTransfers one or more files from the host to the PC, using the Zmodem file transfer protocol.  
Top
See Also