ftp_open()

Description:

Create an FTP client.

Syntax:

ftp_open(server:port,user,pwd)

Note:

External library function (See External Library Guide). By default, the FTP server operates in an active mode.

Option:

@d

Start the FTP passive mode

@s

Create an SFTP client

Parameter:

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_open("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 function:

ftp_close()