IFNFILE        Branch to label if file does not exist

Top  Previous  Next

Syntax:

IFNFILE

[ 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 does not exist.

Options:

none

 

 

 

This script command checks for the existence of the specified file and branches to [ label ] if the file does not exist. 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:

 

IFNFILE "c:\Program Files\Robo-FTP\thisfile" goto not found

 

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

 

Related Command(s): IFFILE, WORKINGDIR