- GETTING STARTED
- GUIDES
- COMMANDS
- Server connection
- File Transfer
- Directory operations
- File operations
- Script output
- Miscellaneous
- OTHER
SILENT
Make ScriptFTP less verbose
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".
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:

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

