ftp_get()

Description:

Download a file from the FTP server.

Syntax:

ftp_get(client,remoteFile,localFile)

Note:

External library function (See External Library Guide). If the parameter localFile is a relative path, it is relative to the path to the current splx file.

Option:

@f

Overwrite the local namesake file

Parameter:

client

An FTP client object

remoteFile

A remote file

localFile

A local file

Example:

 

A

 

1

=ftp_open("192.168.75.1":21,"Administrator","admin")

 

2

=ftp_cd(A1,"/WorkingDirectory")

 

3

=ftp_get(A1,"Records.docx","G:/Records_Download.docx")

Download a file from the FTP server.

4

>ftp_close(A1)

 

Related function:

ftp_put()