ReceiveFTPFile()

Syntax

Result = ReceiveFTPFile(#Ftp, RemoteFilename$, Filename$ [, Asynchronous])
Description
Receive a file from a #Ftp server. 'RemoteFilename$' has to be in the current ftp directory (see GetFTPDirectory() and SetFTPDirectory()). 'Filename$' is the local file where the download file will be written. By default, the download is synchronous and blocks the program until it is finished. The 'Asynchronous' mode (optional parameter = #True) allows to do the download in the backgroud, and FTPProgress() can be used to get the current state of the download. An asynchronous transfer can be aborted with AbortFTPFile(). Only one file can be downloaded or uploaded (see SendFTPFile()) in the background at once.

If the file has not be correctly recieved, 'Result' will be 0.

Supported OS

All

<- OpenFTP() - Ftp Index - RenameFTPFile() ->