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.


download_complete_files.s

Download

When downloading files from an FTP server, it is possible to encounter a situation where you end up downloading a file that is still being updated by some other process on the server.

The FTP protocol does not offer a way to detect whether a file on a server is in use. This problem is usually avoided one of three ways:

How do you solve this kind of problem in cases where the process on the server has not been designed to prevent this situation, and you have no control over changing the server process?

The answer is to add logic to your script to try to detect files that are changing.

This sample script checks a file's size, pauses for a second, then checks the size again. If it sees the file size is changing then it waits a while then tries again.

This method is not 100% guaranteed to avoid conflicts, but is sufficient for most applications.


  1  ftplogon "mysite"
  2  :try_again
  3  getsitefile "*"
  4  set size1 = %sitefilesize
  5  pause /for=1
  6  getsitefile "*"
  7  set size2 = %sitefilesize
  8  IFNUM! size1 size2 goto pause_and_try_again
  9  rcvfile %sitefile
 10  goto done
 11  :pause_and_try_again
 12  pause /for=5
 13  goto try_again
 14  :done
 15  disconnect
 16  exit

Browse complete list of scripts

Home | Solutions | Professional Services | Technical Support | Download | Company | Contact Us | Partners | Site Map | Terms of Service | Privacy Policy |