PPWIZARD is a free preprocessor for HTML, REXX, Visual Basic or any text files.
FileCopy() |
This is an inbuilt function function provided by PPWIZARD.
The purpose of this routine is to copy one file to another.
The return code is "0" when the file was successfully copied or non-zero on error (assuming it returns).
This routine takes at least 2 parameters as follows:
The EQUALS mode can take a fuzziness parameter (for example EQUALS:1") the numeric parameter indicates that files whose times are within that many seconds should be considered equal. This can be handy when copying between filesystems that may support different resolutions, for example NTFS file types are down to the second while FAT is restricted to 2 second intervals, so a NTFS file copied to a FAT drive may differ by 1 second. Note that for whatever stupid reason Windows has, you can actually get files with both 1 and 2 second differences! In this case an appropriate value would be "2" so that only files that differ by more than two seconds are considered different.
Example |
#DefineRexx '' TRACE_ON Call FileCopy '1.x', 'out\2.x', 'equal' #DefineRexx