Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WINZIPMGR doesn't work in exe
Message
From
02/02/2003 09:43:51
 
 
To
28/01/2003 19:10:53
Michael Ouellette
Australian Technical Services (VIC) Pty
Australia
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00746490
Message ID:
00748154
Views:
23
Hi Michael, since there are no replies I dont know if you have solved this post in the meantime but I would create a more simple test for the exe environment i.e. try to zip only a single file.

Also, specify the complete path and file name for the file to be zipped because perhaps it does nothing because it cannot find the files you are trying to zip because of a path issue. So your code becomes:
cDestination="Z:\backup\backup.zip"  && your zip drive
oWinZip = NewObject( "WinZipMgr", "WinZipMgr.prg")
oWinZip.AddFiles( cDestination, "C:\Temp\MyFile.txt")  && sample test file

Also, you say the file Process.vcx are included in the exe. I assume you are issuing the SET CLASSLIB command? - Just grasping :)


>I can use the below in a form and it works just fine under the development environment. Once I compile and run it in the exe NOTHING happens!
>oWinZip = NEWOBJECT( "WinZipMgr", "WinZipMgr.prg")
>owinzip.AddFiles( destin, "company.* employ.* test.*")
>where destin="Z:\backup\backup.zip" && my zip drive
>
>I have a licensed copy of Winzip. When setting Debug on and running the exe through VFP, I can step through the process but it still doesn't zip the files?!! The files Process.vcx and WinZipMgr.prg are included in the exe.
>Any ideas???
>
>TIA
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform