fmSendFTPCommand

Purpose:

Send an FTP command directly to a server. This is action is intended for the execution of FTP commands not directly supported by this plug-in.

Category:

Advanced FTP

Syntax:

fmSendFTPCommand "connection id" "command" "variable"

connection id

The name assigned to the remote FTP connection you want to send the command to. The connection must have already been opened with fmConnectRemote. (This command cannot be used with local connections.)

command

The FTP command to be executed. The command will be passed to the server exactly as entered here without modification.

variable

The name of the variable to store the server's response (if any). The response depends entirely on the command and the type of server.

Example:

fmSendFTPCommand "Remote1" "STAT" "[Result]"

AlertBox "FTP" "The server says:||[Result]"


fmSetDefaultTransferMode

Purpose:

Set the default transfer mode for data over a remote/FTP connection. This specifies the mode used when downloading or uploading files.

Category:

Advanced FTP

Syntax:

fmSetDefaultTransferMode "mode"

mode

The default transfer mode. This may be one of the following:


Auto

NeoFM/FTP will automatically determine the best mode based on the file's extension. For example, a file ending in .txt will be transferred in ASCII mode and a file ending in .jpg will be transferred in Binary mode. This is the default mode.


You can customize wether a particular file extensions is classified as ASCII or Binary using the fmAddASCIIFileTypes and fmRemoveASCIIFileTypes actions described below.

ASCII

This mode will transmit data in ASCII, or "American Standard Code for Information Interchange", format. This mode is typically used for files containing plain text such as .html, .css, .txt, etc.

Binary

This mode will transmit data as raw 8-bit, or binary data. This mode is typically used for images, compressed files, executable programs such as .jpg, .gif, .zip, .rar, .exe, etc.

Example:

fmSetDefaultTransferMode "Auto"


fmAddASCIIFileTypes

Purpose:

Add one or more extension to the ASCII file classification list. This is used to determine the proper transfer mode when fmSetDefaultTransferMode is set to "Auto". Files with extensions matching those in this list will be classified as ASCII. Files with extensions not in this list will be classified as Binary.


Note: At startup, the ASCII file list contains the following extensions: txt, htm, html, xml, css, asp, vbs, js, cgi, pl, php, php3, cf, svg, rtf, ps, c, cpp, h, pas, bas, tex, htaccess, xtml, cfg, ini and sh.

Category:

Advanced FTP

Syntax:

fmAddASCIIFileTypes "extension list"

extension list

One or more file extensions separated by semicolons (;) to be added to the ASCII file classification list. Attempting to add an extension already in the list wil not cause an error.

Example:

fmAddASCIIFileTypes "asc;ini;dat"


fmRemoveASCIIFileTypes

Purpose:

Remove one or more extensions from the ASCII file classification list.

Category:

Advanced FTP

Syntax:

fmRemoveASCIIFileTypes "extension list"

extension list

One or more file extensions separated by semicolons (;) to be removed from the ASCII file classification list. Attempting to remove an extension not in the list will not cause an error.

Example:

fmRemoveASCIIFileTypes "asc;ini;dat"


fmGetASCIIFileTypes

Purpose:

Copy a list of all extensions in the ASCII file classification list to a variable.

Category:

Advanced FTP

Syntax:

fmGetASCIIFileTypes "variable"

variable

The name of the variable where the list of extensions will be stored. Multiple extensions will be separated by the global delimiter.

Example:

fmGetASCIIFileTypes "[ASCIIExts]"