Script

FTP

The professional tool to automate FTP, SFTP, FTPS

and schedule FTP batch jobs

Since version 4.1 this command has been replaced by OUTPUTDETAIL(SILENT)

Syntax:

Silent(mode)

  • mode:
    ON: When silent is enabled ScriptFTP will only show errors, transferred files and the PRINT messages. All information other than that about the script run will be suppressed.
    OFF: Default. All messages are shown.

Return value:

This command always returns “OK”.

See also:

VERBOSE
LOGTO
PRINT

Example:

# Enable silent mode. Only transferred files and error will be shown
SILENT(ON)
 
# Connect to FTP server
OPENHOST("127.0.0.1","carlos","123456")
 
# Download some files
GETFILE("*.*")
 
# Close the connection
CLOSEHOST

The script output of the above example is the following. Note that the commands are not shown:

silent_example

Example:

# Display and log transferred files and errors only
SILENT(ON)
 
# Log script run to a text file
LOGTO("C:\logs\TransferLog.txt")
 
# Connect to server
OPENHOST("ftp.host.com","myuser","mypassword")
 
# Create the remote directory /sources
MKDIR("/sources")
 
# Disable silent mode
SILENT(OFF)
 
# Change current remote directory
CHDIR("/sources")
 
# Reenable silent mode
SILENT(ON)
 
# Upload files
PUTFILE("C:\PICS\*.gif")
 
# Close connection
CLOSEHOST