Syntax:

SETMODEZ(mode)

  • mode: Set it to one of the following values.
    ON Activate Mode Z.
    OFF Deactivate Mode Z.

Return Value:

This command always returns “OK”.

Command compatibility:

This command was added in ScriptFTP 3.2 build Jan 11th 2009.

Remarks:

Mode Z is deactivated by default.

Example:

# Connect to FTP server
OPENHOST("127.0.0.1","carl","123456")
 
# Activate Mode Z
SETMODEZ(ON)
 
# Download sales.xls with Mode Z activated
GETFILE("sales.xls")
 
# Deactivate Mode Z
SETMODEZ(OFF)
 
# Download sales.xls with Mode Z deactivated
GETFILE("sales.xls")
 
# Close the connection
CLOSEHOST