Function EN Version 5.00

@FTPNTOpen

FTP

Syntax

@FTPNTOpen(TEXTAPPLICATION;TEXTSERVER);
@FTPNTOpen(TEXTAPPLICATION;TEXTSERVER;FNSERVERPORT);
@FTPNTOpen(TEXTAPPLICATION;TEXTSERVER;FNSERVERPORT;TEXTUSERNAME;TEXTPASSWORD);
@FTPNTOpen(TEXTAPPLICATION;TEXTSERVER;FNSERVERPORT;TEXTUSERNAME;TEXTPASSWORD;FNCONNECTIONFLAGS);

Description

This @Function is available only on Windows!

Starts an FTP session.
TEXT APPLICATIONTEXT specifies the name of the application or service. This name is passed on in the FTP protocol.

FN FNCONNECTIONFLAGS:
0      Active mode (default)
134217728    Passive mode

On success, the @Function returns an FTPNT handle; otherwise, @Error.

Example: @FTPNTOpen(APPLICATIONTEXT)

APPLICATIONTEXT:="Test";
ftpnth:=@FTPNTOpen(APPLICATIONTEXT);
ftpnth:=@FTPNTClose(ftpnth);

An FTP session is started and then closed again.

Note : This text was machine-translated and may contain inaccuracies.