FTPSendFile

This method sends the specified file to the host using FTP file transfer.


Syntax

FlexSession.FTPSendFile(LocalFileName, HostFileName, FlexFileType, [Scheme])


Parameters


LocalFileName

String, input



The full path and name of the local file to transfer.


HostFileName

String, input



The name of the host file.


FlexFileType

Flex Terminal Emulator parameter, input



Specify text or binary format for transfer using the format FlexFileType.Text or FlexFileType.Binary


Scheme

String, input, optional



Optionally specify the file transfer scheme (FTP server settings) to use. If not specified, the current Flex Terminal Emulator session FTP settings will be used.

Example

Sub Main()

Ok = FlexSession.FTPSendFile("C:\MyFile.txt", "MyFile.txt", FlexFileType.Text, "MyFTP.atf")

End Sub