PreviousNext
Help > Programming with LAUNCHER Office > LNCCMD commands > Commands list > FTPCONNECT command
FTPCONNECT command

Open a FTP session with the FTP server specified into parameters.

 

Syntax

 

CHGVAR

VAR(&CMD) VALUE('FTPCONNECT')

CHGVAR

VAR(&PARM1) VALUE('

ServerName="FTP server name"

;Username="FTP user name"

;Password="FTP user password"

[;SSLEnable=true/false]

[;ServerPort="FTP Port"]

[;Logfile=true/false]

')

CHGVAR

VAR(&PARM2) VALUE(' ')

CALL

PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 &PARM2 &RESULT)

 

Parameters

 

Parameters

 

Parm1
or
Parm2

ServerName : FTP server name or IP address.

 

Username = FTP user login.

Password=FTP user password.

SSLEnable : true/false. Optional.
By default : false (not secure).

If SSLEnable=true, the FTP Secure protocol (FTP over TLS/SSL) is used.

ServerPort : FTP server port. Optional. If not specified, by default, the port 21 is used for non-secure connections, and the port 990 is used for secure connections.

 

Logfile : true/false. Optional.
By default : false.

If Logfile=true, a logfile is created into %TEMP%.

 

RESULT

Eventually, contains error messages.

 

 

 

 

Example

LNCCMD CMD(FTPCONNECT)+ PARM1('ServerName="ftp.aura.com";+
username="aura";password="aura"')