Use the set options to determine how script commands that delete or replace a file are processed. The typical use of this command is to set an option on so that a script can run without the need for the operator to respond to confirmation prompts.
When an option is set, it remains in effect until it is reset by another set command or SDI FTP is restarted.
set delete_all {on | off | confirm}
delete_local
delete_remote
replace_all
replace_local
replace_remote
Where:
delete_all | is the setting for both local and remote delete operations. |
delete_local | is the setting for local delete operations. |
delete_remote | is the setting for remote detele operations. |
replace_all | is the setting for replacing existing files on upload and download operations. |
replace_local | is the setting for replacing existing files on download operations. |
replace_remote | is the setting for replacing existing files on upload operations. |
{on | off | confirm} | sets the action for the specified operation. |
on | allow the operation with no confirmation dialog box. |
off | disallow the operation. An error message is issued if the operation is attempted. |
confirm display the confirmation dialog box.
Examples:
set DELETE_LOCAL off
set replace_ local on
Sample Script:
* Sample script using the "set" command.
* Upload test.txt.
put test.txt
* Allow remote delete operations with no confirmation dialog box.
set delete_remote on
* Delete text.txt.
delete test.txt