Frequently Asked Questions

The FAQ list is a great starting point for basic questions about what you can do with Robo-FTP.

Orange_arrowOrange_arrow Browse the FAQ list now

Knowledge Base

Our searchable knowledge base covers most of the common errors and implementation problems you are likely to encounter.

Orange_arrowOrange_arrow Search the Knowledge Base now

Contact Technical Support

If you can't find the answers you need online, get in touch with our Technical Support staff.

Orange_arrowOrange_arrow Contact Technical Support now

Professional Services

Need more than basic technical support? Our Professional Services team can help you deploy a complete solution.

Orange_arrowOrange_arrow Contact Professional Services now

Sample scripts are provided as-is with no warranty of fitness for a particular purpose. These scripts are solely intended to demonstrate techniques for accomplishing common tasks. Additional script logic and error-handling may need to be added to achieve the desired results in your specific environment.


Display_file_name.s

Download

The typical way to send all files from a local directory is to use SENDFILE with a wildcard like this:

SENDFILE "*"

However, under some circumstances you may want to process each file individually for more fine-grained control.

Robo-FTP provides numerous commands that are designed to work with loops to iterate through all the files in a directory.

This example uses GETFILE. See the Help file to determine which command is most appropriate for your situation. Other commands with similar functionality include GETSITEFILE, GETNEXTFILE, and FTPGETFILE.

This example sets up a loop that finds each file in the "dailys" directory, displays the file name, and uploads the file.

Instead of (or in addition to) displaying the file name you could perform other processing on each file (like adding to a zip archive, PGP encrypting, etc.).


  1  LOG "robo-ftp_script.log"
  2  TRACELOG "robo-ftp_trace.log"
  3  
  4  FTPLOGON "my_ftp_site"
  5  WORKINGDIR "C:\my documents\dailys"
  6  getrewind
  7  :loop
  8  GETFILE "*" 
  9  IFERROR= $ERROR_NO_FILE_FOUND GOTO done
 10  DISPLAY %nextfile
 11  SENDFILE %nextfile
 12  
 13  GOTO loop
 14  :done
 15  FTPLOGOFF

Browse complete list of scripts