What might not work is security. If you're on Windows 7 with UAC on, you can't write files to arbitrary paths since the user doesn't have write permissions in folders like Program Files etc.
Hi Harvey,
Are you able to get this running in 64 bit mode?
I need to zip some files and dzip32.dll will not work or register on win 7 64 bit.
Also, in wwAPI.prg the ZipFiles function is referencing wwIPStuff.dll which is deprecated.
DECLARE INTEGER Zip ;
IN wwipstuff.dll ;
STRING ZipFile,;
STRING FileList,;
INTEGER lnCompression,;
INTEGER lnRecurse,;
INTEGER lnAdditive
Any help much appreciated!
Thanks, Craig
This seems to have resolved my use of this feature. Thank you for posting.
--hm--
Dear Rick,
I have wconnect folder in path and dzip32.dll is in wconnect folder, however I was not able to find ZipFiles() function.
I looked it in Server.oApi but I never found ZipFiles() function as stated in your Help about Class wwAPI .
In fact I have seen ZipFiles function in wwApi.prg, but I was not able to call it.
Now I discovered ZipFiles function works if I run SET PROCEDURE TO wwApi.prg ADDITIVE in MyAppMain.prg.
Why is it not available ZipFiles function if I run owwApi=CREATEOBJECT("wwapi") ?
How is the right syntax to compress two type of files:
ZipFiles("Data.zip","*.dbf,*.fpt")
Thank you very much for patience