activation
Installation
PGP
Robo-FTP
Robo-FTP Server

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

Getting Started

Browse these tutorials and sample scripts to get up and running with Robo-FTP in minutes.

Orange_arrowOrange_arrow Browse tutorials and samples 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

Enter search queries below or use the tag links to the right to browse the knowledge base by category (Show All Tags).


FTPGETFILE, GETFILE, GETNEXTFILE, and GETSITEFILE are only detecting every other file in the directory

FTPGETFILE / GETFILE and GETSITEFILE / GETNEXTFILE (when used with the /next option) are designed to iterate over a static directory of files.

Modifying that directory by deleting or moving a file with each iteration breaks those commands' ability to keep track of which file is next in the list. The result is that it will appear as though Robo-FTP is only detecting every other file.

Solution

If you are using FTPGETFILE or GETFILE, then use the FTPGETREWIND or GETREWIND command to reset the file pointer with each iteration, like this:

:loop
FTPGETREWIND
FTPGETFILE "*" /oldest
IFERROR= $ERROR_NO_FILE_FOUND goto no_more_files
RCVFILE %sitefile /delete
GOTO loop
:no_more_files

If you are using GETSITEFILE or GETNEXTFILE then do not use the /next option, like this:

:loop
GETSITEFILE "*" /oldest
IFERROR= $ERROR_NO_FILE_FOUND goto no_more_files
RCVFILE %sitefile /delete
GOTO loop
:no_more_files

Article last updated: 2014-01-15

Tags: Robo-FTP, FTPGETFILE, GETSITEFILE, GETFILE, GETNEXTFILE

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