ftp_client()

Description:

Create an FTP client.

Syntax:

ftp_client(server:port,user,pwd)

Note:

External library function. By default the FTP server operates in an active mode.

Options:

@d

Start the FTP passive mode

Parameters:

server

An FTP server’s IP address

port

An FTP server’s port number, which is by default 21 and can be omitted

user

The username to access an FTP server

pwd

The password to access an FTP server

Example:

 

A

 

1

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

Create an FTP client

2

=ftp_cd(A1,"/workPath")

 

3

=ftp_put(A1,"test.txt","G:/Test.txt")

 

4

>ftp_close(A1)

 

Related functions:

ftp_close()