;; Set directory path for downloaded files WORKINGDIR "c:\download\destination\folder" ;; Set path of existing remote archive directory SET site_archive_folder = "/old/" ;; Connect to site FTPLOGON "My Remote Site" IFERROR RETURN ;; Download files and then move them into the ;; archive folder only if download is successful :loop GETSITEFILE "*" IFERROR RETURN $ERROR_SUCCESS RCVFILE %sitefile IFERROR RETURN SET new_name = site_archive_folder + %sitefile FTPRENAME %sitefile new_name IFERROR RETURN GOTO loop