LOG "robo-ftp_script.log" TRACELOG "robo-ftp_trace.log" WORKINGDIR "C:\upload_dir" ARCHIVEDIR "C:\archive" FTPLOGON "MyRemoteSite" :loop GETNEXTFILE "*" /timeout=0 ;; When a file appears, the file name is stored in the ;; built-in variable %nextfile SENDFILE %nextfile /archive GOTO loop