PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → ZIP file compression
ZIP file compression
Débuté par Ricardo, 15 juil. 2008 10:45 - 5 réponses
Posté le 15 juillet 2008 - 10:45
Hello, someone could tell me where I could find any procedure or example of a ZIP file compression in Windev, please!!!. ;-)
I am need generate backup of files FIC, I have a class for example, but does not work in version XII of Windev.
Regards
Posté le 15 juillet 2008 - 10:46
Hi Ricardo,
for Classic HyperFile only, you cannot zip the files of an application directly from the running application, because they are open and in use. It doesn't help to close the files - as long as the analysis is active, the files are still 'in use'.
The rather simple solution ist to start a mini-application for zipping the files and directly after start you have to close the main application. After the files are selected, zipped and saved you can restart the main application and close the mini-application.
Kind regards,
Guenter
Posté le 15 juillet 2008 - 10:48
Guenter Hello, thank you for your answer.
Well, I got an example for compression, but unfortunately not working with the WD XII, works only in WD XI and I already converted all application. :-(
Anyway I will need to find another example that can help generate automatic .zip files for the end-user.
Regards
Posté le 15 juillet 2008 - 10:49
why not using the existing WD commands like zipcreate and zipadddirectory ?
I use them to realize a user-driven backup of the application data files (FIC+NDX)
opposed to Guenters message it is possible to do this with "live data": i close all files and copy them to a temporary directory. from here i use the WD zip commands which can create WDZ or Zip archives
regards, Heinz
Posté le 15 juillet 2008 - 10:50
Okay, I will try to use these commands WD, I was using one. DLL to generate free to compression.
Thankful for answers. :spos:
Posté le 15 juillet 2008 - 10:50
is working with the commands that you showed me, grateful! :spos::rp: