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"
oWinZip = NewObject( "WinZipMgr", "WinZipMgr.prg")
oWinZip.AddFiles( cDestination, "C:\Temp\MyFile.txt")
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.