Using the %deletefiles and %ftpdeletefiles Variables

<< Click to Display Table of Contents >>

Navigation:  Robo-FTP User's Guide > Script Programming > Internal Script Variables >

Using the %deletefiles and %ftpdeletefiles Variables

 

The %deletefiles and %ftpdeletefiles variables record the exact filenames of those files removed with the most recent DELETE / DELDIR and FTPDELETE / FTPDELDIR script commands, respectively.

 

Consider the following example in which the name of each deleted file is used in a message that is displayed to the user.

 

DELETE "*"

SETNUM count = %deletefiles[*]

SETNUM i = 0

SET msg = "Deleted: "

:loop_list_deleted

IFNUM>= i count GOTO loop_list_deleted_end

SET msg = msg + %crlf + "    " + %deletefiles[i]

SETNUM i = i + 1

GOTO loop_list_deleted

:loop_list_deleted_end

MESSAGEBOX msg

 

 

See also: Internal Script Variables