>Does anyone have some code that they would like to share to drive 7-Zip from VFP?
>(7-Zip is a free Zip program.)
7-zip is free, and it compresses much better than standard ZIP. But I have never tried controlling it from Visual FoxPro.
Did you check the command-line parameters? I don't know whether it has some API, which would provide better control...
One of the downloads I provided is to automate backups; but you would have to insert the appropriate commands for your favorite compression program. The download is also quite old; some of the DOS commands no longer work in newer versions of Windows (including Windows XP).
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)