IFFILE        Conditional branch to label if file exists

Top  Previous  Next

Syntax:

IFFILE

[ file name ]  goto  [ label ]

Arguments:

[ file name ]

Variable or string defining a file or path name; if no path is defined Robo-FTPs working folder is used.

 

[ label ]

A valid label within the current script file which is branched to if the specified file exists.

Options:

none

 

 

 

This script command checks for the existence of the specified file and branches to [ label ] if the file exists. Robo-FTP attempts to open the file to ascertain if it exists or not, so make sure that you have the proper privileges to access the file.

 

For example:

 

IFFILE "c:\Program Files\Robo-FTP\thisfile" goto found it

 

Note: wildcard characters in [ file name ] are not permitted.

 

Related Command(s): IFNFILE, WORKINGDIR