Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Putting pictures in a zip file
Message
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00466323
Message ID:
00468300
Views:
35
Rick, here's the code I'm running from a PRG. Works fine.

Barbara

** Here we create an Xceed Zip object called oXCeed
oXceed = CREATEOBJECT("XceedSoftware.XceedZip.4")

If VARTYPE(oXceed) != "O"
   Return .F.
Endif

With oXceed
   .EncryptionPassword = 'ESDSet'
   .ZipFileName = cZipFile
   .FilesToProcess = (cPath2) + "*.*"
   .PreservePaths = .T.
   nResultCode = .zip
   If nResultCode <> 0
      lret = .f.
      cRC = ''
      cRC = .GetErrorDescription(0, nResultCode)
      cErrMsg = 'ZIP program did not work.  The error was ' + cRC
   Endif
Endwith
Barbara Paltiel, Paltiel Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform