IFNFILE Branch to label if file does not exist |
Top Previous Next |
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 DASHBOARDMSG "File was found, uploading now ..." SENDFILE "c:\Program Files\Robo-FTP\thisfile" GOTO done
:not found DASHBOARDMSG "File not found."
:done FTPLOGOFF
Note: wildcard characters in [ file name ] are not permitted.
Related Command(s): IFFILE, WORKINGDIR, BROWSE
|