Using the %difffiles and %diffnum Variables

<< Click to Display Table of Contents >>

Navigation:  Robo-FTP User's Guide > Script Programming > Internal Script Variables >

Using the %difffiles and %diffnum Variables

 

These variables are set by the DIFF and GETDIFF script commands respectively.

 

The %difffiles variable contains the total number of different files that the DIFF command detects when scanning the local PC file system within the folder and subfolders (if any) specified.

 

The %diffnum variable contains the sequential number of a given file returned by the GETDIFF 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 GETDIFF to identify multiple differences.

 

More specifically, %diffnum = %difffiles after GETDIFF has been issued a sufficient number of times to find all the currently identified differences detected by the most recent DIFF command.

 

 

See also: Internal Script Variables