Using the %ftpdifffiles and %ftpdiffnum Variables

Top  Previous  Next

 

These variables are set by the FTPDIFF and FTPGETDIFF script commands respectively.

 

The %ftpdifffiles variable contains the total number of different files that the FTPDIFF command detects when scanning the FTP site file system within the directory and subdirectories (if any) specified.

 

The %ftpdiffnum variable contains the sequential number of a given file returned by the FTPGETDIFF command.

 

Used together, it is possible to use these variables to know how many more differences there may be when performing a script loop calling FTPGETDIFF to identify multiple differences.

 

Specifically, %diffnum = %difffiles after FTPGETDIFF has been issued a sufficient number of times to find all the currently identified differences detected by the most recent FTPDIFF command.

 

 

Related command(s): FTPDIFF, FTPGETDIFF

See also: Internal Script Variables