FTPReceiveFile
FTPReceiveFile
This method receives the specified file from the host using FTP file transfer.
Syntax
FlexSession.FTPReceiveFile(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.FTPReceiveFile("C:\Users\Public\MyFile.txt", "MyFile.txt", FlexFileType.Text, "MyFTP.atf")
End Sub