PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Extract .wdz file
Extract .wdz file
Iniciado por engineer.danneskjold, 30,may. 2017 23:22 - 1 respuesta
Publicado el 30,mayo 2017 - 23:22
Hi guys,

I was sent a .wdz file which I need to extract. There doesnt seem to be any standalone programs that will do this. I have downloaded the WinDev development software and have attempted to extract the file with little luck.

// Declare and initialize the variables
ResOpenArchive is int
ResExtractAll is int

// Open an archive
ResOpenArchive = zipOpen("MyArchive", "E:\Archives\Project.wdz")
// Display an error message if the archive was not opened

IF ResOpenArchive = 0 THEN
...
// Extract all the files from the archive
ResExtractAll = zipExtractAll("MyArchive","E:\Destination")
...
END

IF ResOpenArchive <> 0 THEN
Error(zipMsgError(ResOpenArchive))
END
Publicado el 31,mayo 2017 - 13:09
Hi Johan,

windev comes with a lot of examples, and one of them does what you need.
It is called WD Zip:

Example: WD Zip
WINDEV
This example presents the use of archiving WLanguage functions with
compression.
The following topics are presented in this example:
1/ How do I create an archive?
2/ How do I compress and uncompress files?
3/ How do I manage the Drag&Drop from the file explorer of Windows to a
TreeView control?
Summary of the example supplied with WINDEV:
This example allows you to create and read compressed archives in WDZ,
ZIP, CAB and RAR format (in read-only). This feature can be very useful
to manage the automatic backups. Furthermore, the example allows you to
create multi-volume archives.

You can open it directly from windev

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM
(open source)

More information on http://www.fabriceharari.com


Le 5/30/2017 à 3:22 PM, Johan a écrit :
Hi guys,

I was sent a .wdz file which I need to extract. There doesnt seem to be
any standalone programs that will do this. I have downloaded the WinDev
development software and have attempted to extract the file with little
luck.

// Declare and initialize the variables
ResOpenArchive is int
ResExtractAll is int

// Open an archive
ResOpenArchive = zipOpen("MyArchive", "E:\Archives\Project.wdz")
// Display an error message if the archive was not opened

IF ResOpenArchive = 0 THEN
...
// Extract all the files from the archive
ResExtractAll = zipExtractAll("MyArchive","E:\Destination")
...
END

IF ResOpenArchive <> 0 THEN
Error(zipMsgError(ResOpenArchive))
END