- GETTING STARTED
- GUIDES
- COMMANDS
- Server connection
- File Transfer
- Directory operations
- File operations
- Script output
- Miscellaneous
- OTHER
VERBOSE
Enable or disable displaying additional details about the script run.
Syntax: VERBOSE(mode)
- mode:
OFF: This is the default. ScriptFTP will show the command calls, command messages and any errors encountered during the script run.
ON: ScriptFTP will also show the dialog with the FTP server, DNS resolving issues and connection loss messages. Under certain circumstances it may also show internal messages.
Remarks:
Use this command to find out in detail what is happening during the script run. ScriptFTP will show the following information:
- The dialog between ScriptFTP and the FTP server.
- DNS resolving issues.
- Connection loss messages.
- Debug information about the status of ScriptFTP or the command currently executed.
This command is usually put at the beginning of a script file.
Return value:
This command always returns "OK".
Example:
# Enable verbose mode
VERBOSE(ON)
# Connect to server
OPENHOST("127.0.0.1","myuser","mypassword")
# Upload files
PUTFILE("*.*")
# Close connection
CLOSEHOST
The output of the script above is the following:
