Using the %copyfiles Variable

<< Click to Display Table of Contents >>

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

Using the %copyfiles Variable

 

The %copyfiles variable records the exact path of those files copied. When used with the COPY or MOVE command, the variable contains the destination path of all copied files. When used with the APPEND command, the files matching the [ src name ] argument to APPEND are used.

 

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

 

MAKEDIR "copydestdir"

COPY "*" "copydestdir"

SETNUM count = %copyfiles[*]

SETNUM i = 0

SET msg = "Copied: "

:loop_list_copied

IFNUM>= i count GOTO loop_list_copied_end

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

SETNUM i = i + 1

GOTO loop_list_copied

:loop_list_copied_end

MESSAGEBOX msg

 

 

See also: Internal Script Variables