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 FileLinks 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. FileLink 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\FileLink\thisfile" goto found it

 

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

 

Related Command(s): IFNFILE, WORKINGDIR