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