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

Allows to get all files of a remote directory.

 

Syntax

 

CHGVAR

VAR(&CMD) VALUE('FTPGETDIR')

CHGVAR

VAR(&PARM1) VALUE('

LocalDestDir="Local directory";

RemoteSrcDir="Remote directory"

')

CHGVAR

VAR(&PARM2) VALUE(' ')

CALL

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

 

Parameters

 

Parameters

 

Parm1
or
Parm2

LocalDestDir : Complete path of the local directory where the remote files will be copied.

 

RemoteSrcDir : Complete path from the FTP server root and name of the directory containing the files to get.

 

RESULT

Contains eventually error messages.

 

 

 

 

Example

LNCCMD CMD(FTPGETDIR) PARM1('RemoteSrcDir="/www/Data/temp/suivi";LocalDestDir="C:\A\suivi"')