logo Set - set delete and replace operations

Return to Introduction     

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_localis the setting for local delete operations.
delete_remoteis the setting for remote detele operations.
replace_allis the setting for replacing existing files on upload and download operations.
replace_localis the setting for replacing existing files on download operations.
replace_remoteis the setting for replacing existing files on upload operations.        
{on | off | confirm}sets the action for the specified operation.

 

onallow the operation with no confirmation dialog box.
 
offdisallow 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