FTP Script! v220.127.116.11, released earlier today, comes with a bunch of new features and functions to simplify some tasks related to the management of local files. In fact, it’s not just about transferring files to/from FTP servers… what you do with those files after/before you upload/download them to your local disk also matters!
In earlier versions of FTP Script! the FileCopy function, for example, was very limited. It could copy only one file at a time, and it had no support for wildcard file masks. In v3.1 we greatly improved it, and you can now use it this way:
if FileCopy('C:\Data\*.xml', 'C:\Destination\', true) then
Log('Files successfully copied')
Log('Files were NOT correctly copied');
The third parameter (set to true in the example here above) determines whether the function should overwrite the destination file(s) if it/they already exist.