Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Any experience with WinZipMgr?

Status
Not open for further replies.

RoadRunnerOz

Programmer
Aug 22, 2000
128
AU
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! (no files are zipped)

All files are in the exe directory for my test. Changing directories does nothing.

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 Visual FoxPro, 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.

I've tried zipping just one file and/or adding the full path to the file(s). Still nothing

Any ideas???
Michael Ouellette
mouellette@compuserve.com
 
Hi Michael,

I don't know WinZipMgr, so I might be talking rubbish. But I am wondering about the filenames listed in the second parameter to AddFiles. Are these files in your VFP default directory? If so, how does WinZipMgr know where to look for them?

Just a guess, but you could try wrapping each of the filenames with FULLPATH().

Mike Lewis
Edinburgh, Scotland
 
Thanks for the response... You're right about the rubbish part! The form works perfectly in development but not in an exe. I did try a fullpath with the same result. The files all reside in the program directory for this exercise!

I was hoping someone would respond that has used winzipmgr.
anyway Thanks again. Michael Ouellette
mouellette@compuserve.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top