| 
       Using the %ftpdifffileid, %ftpdifffilename, %ftpdifffilepath, and %ftpdifffiletext Variables  | 
    Top Previous Next | 
| 
 
 These variables are set as a result of running the FTPGETDIFF script command when a difference is detected with a file in the FTP site file system. FTPGETDIFF is used after running the FTPDIFF script command which compares baseline information obtained about the remote file system (using a snapshot database) with the current state of files within the remote file system. 
 The %ftpdifffilepath variable contains the full path name of a changed file and %ftpdifffilename just the file name itself. 
 The %ftpdifffileid and %ftpdifffiletext variables contain information about how the file has changed in numeric and text formats, respectively. 
 Possible values for %ftpdifffileid are: 
 5001 = $DIFF_FILE_NOT_FOUND 5002 = $DIFF_FILE_IS_NEW 5003 = $DIFF_FILE_SIZE 5004 = $DIFF_FILE_DATETTIME 
 Possible values for %ftpdifffiletext are: 
 ** File not found ** File is new ** File size has changed ** File date/time stamp has changed 
 Consider the following example where only files that have a different size are of interest. 
 :loop IFERROR $ERROR_READ_EOF GOTO done IFNUM!= %ftpdifffileid $DIFF_FILE_SIZE GOTO loop MESSAGEBOX %ftpdifffilename "Size of this file has changed." GOTO loop :done 
 
 Related command(s): FTPDIFF See also: %difffileid, %difffilename, %difffilepath, and %difffiletext, Internal Script Variables  |