ARCHIVEDIR        Define Robo-FTP’s archive folder

Top  Previous  Next

Syntax:

ARCHIVEDIR

[ path name ]

Arguments:

[ path name ]

A variable or string to specify the path name of Robo-FTPs archive folder.

Options:

none

 

 

 

This script command defines the destination folder for archiving files after they are successfully uploaded using the SENDFILE command with the /archive option.

 

Consider the following example where a file named "example.txt" is moved to a folder named "c:\Program Files\Robo-FTP X.X\archive" if it is uploaded successfully:

 

;; archive "c:\Program Files\Robo-FTP X.X\example.txt" after sending

ARCHIVEDIR "c:\Program Files\Robo-FTP X.X\archive"

SENDFILE "example.txt" /archive

 

The archive folder remains defined for the duration of the current script execution so a script should only call the ARCHIVEDIR command multiple times if the process logic requires using different archive destination folders at different points during execution.

 

 

Related command(s): SENDFILE, MAKEDIR, WORKINGDIR, CHGDIR