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 |
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"')