Macro Scheduler 15




Not supported in Macro Scheduler Lite.


This command will connect to the specified FTP server and retrieve a file or files.


The file(s) retrieved from the server is specified using Host_Dir and Host_Filespec.  The file(s) is saved on the local machine under the name specified in Local_Path.  If Host_Filespec is a file spec which matches multiple files (includes wildcards), all matching files will be downloaded and stored to Local_Path.  Note that Local_Path can be a path to a directory or file.  Specify a directory when retrieving multiple files.  A filename is only sensible when retrieving a single file where the local filename should be different.  Depending on the server type Host_Dir can be left empty if retrieving files from the root folder.


Mode can be either A or I, where A represents ASCII transfer mode and I represents binary.


When the FTP commands are active a small floating window is displayed at the top left of the screen showing the status of the FTP session.  To stop the status window appearing set FTP_STATUS to 0 before issuing an FTP command.  Set it back to 1 to show the window.  The default value for FTP_STATUS is 1.


If passive mode is required, set FTP_PASSIVE to 1.  Set to zero to switch passive mode off.


The result of the FTP operation is stored in FTP_RESULT.   The number of files transferred is stored in FTP_NUMFILES.


If you are connecting via a proxy server, enter the name or IP address of the proxy server in 'Server', and for 'Username' specify [email protected]_server.


By default the timeout for the FTP commands is set to 15 seconds.  To change this set the FTP_TIMEOUT variable.


TLS/SSL Support


To use TLS/SSL you will first need to install the OpenSSL libraries.  See:


For TLS/SSL support set FTP_USETLS to one of the following values:



No TLS/SSL Support

Default - no encryption


Use Implicit TLS

You wish to use implicit TLS. In implicit TLS FTP, you connect to port 990, start TLS negotiation, and the entire session is encrypted. IETF has depreciated implicit TLS FTP so this setting should only be used with FTP servers that do not yet support explicit TLS.


Use Require TLS

You wish your session to use explicit TLS. In explicit TLS FTP, you connect to port 21 like the unencrypted version of FTP and encryption lasts until you disconnect. No attempt is made to continue the FTP session if TLS negotiation fails.


Use Explicit TLS

You wish your session to use explicit TLS if the FTP server supports it.


To set TLS version set TLS_VER to one of the following values:


1        TLS v1.0

11        TLS v1.1

12        TLS v1.2


If needed you can also specify the SSL certificate and key files to use using SSL_CERT, SSL_ROOT_CERT, SSL_KEY


Abbreviation : FGF

See also: FTPPutFile, FTPGetDirList, FTPDelFile, FTPRenameFile




FTPGetFile>,anonymous,[email protected],21,c:\temp\myfile.txt,/pub/,readme.txt,A


Multiple Files:


FTPGetFile>,anonymous,[email protected],21,c:\temp\,/pub/,*.txt,A