Using the %downloadfiles and %uploadfiles Variables

Top  Previous  Next

 

The %downloadfiles and %uploadfiles variables record the exact filenames of those files transferred with the most recent RCVFILE and SENDFILE script commands, respectively. The SYNC command will also set these variables appropriately for any uploaded or downloaded files.

 

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

 

RCVFILE "*"

SETNUM count = %downloadfiles[*]

SETNUM i = 0

SET msg = "Received: "

:loop_list_downloaded

IFNUM>= i count GOTO loop_list_downloaded_end

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

SETNUM i = i + 1

GOTO loop_list_downloaded

:loop_list_downloaded_end

MESSAGEBOX msg

 

 

See also: Internal Script Variables