Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: ZipFiles Function

$
0
0
Re: ZipFiles Function
Web Connection 5.0
Re: ZipFiles Function
Dec. 21, 2012
02:29 pm
3O80V2OOKShow this entire thread in new window
Gratar Image based on email address
From:Craig Tucker
To:Rick Strahl
Thanks Rick,
My bad - it works great with wwAPI. I had a set default to a subfolder to zip and it couldn't find dZip32.
(Correction too - wwIPStuff.vcx/vct is deprecated not wwIPStuff.dll)
Must be Friday...
Merry Christmas,
Craig

It should work just fine from VFP. VFP and the dll are both 32 bit, so that works. It works fine for me and I'm on Windows 8 (and 7 before it) in 64 bit mode. It certainly works for me and I'm running on Windows 8 64 bit (and 7 64bit before that).

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.

+++ Rick ---


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





Viewing all articles
Browse latest Browse all 10393

Trending Articles