WinZip automation: using wzunzip -v to extract archive content information

alex_hatzisavas

Registered User.
Local time
Today, 10:54
Joined
May 18, 2006
Messages
12
Hi all.

I'm trying to automate WinZip from within MS Access.
I'm using a registered version of WinZip 10.0 Pro.

I ran into some trouble when i tried to extract the contents of the Zip archive to a text file.

Here's the syntax i've been trying to use:
C:\Program Files\Winzip\Wzunzip -v
"C:\Test_Data\99_WinZip_automation_tests\test.zip"
">C:\Test_Data\99_WinZip_automation_tests\test.txt"

Test.zip is the name of the Zip archive.

It resides in folder:
C:\Test_Data\99_WinZip_automation_tests

Test.txt is the name of the text file where i would like to export the file names that are included in the WinZip archive.

Anybody ever used this functionality of WinZip?

Thank you,
Alex
 
I thought there have been posts on this before, but I can no longer find them. Until I can look into the library files, see this thread here and see if that helps
 
Last edited:
Actually i found some excellent links to Ron De Bruin's (hope im not wrong with the name) code on this site, which helped a lot.

I just couldn't get this specific functionality to work (wzunzip -v to extract the archive file names into a .txt file).

I expect a reply from Winzip on this, if anybody else used something similar please let me know.

Thanks,
Alex
 
In case anyone is interested, the correct syntax is:
C:\Program Files\Winzip\Wzunzip -o "-@C:\Test_Data\99_WinZip_automation_tests\test_contents.txt" "C:\Test_Data\99_WinZip_automation_tests\test.zip"

This will extract the names of the files contained in the Winzip archive:
"C:\Test_Data\99_WinZip_automation_tests\test.zip"

to the text file:
C:\Test_Data\99_WinZip_automation_tests\test_contents.txt

Winzip has a very good technical support dept. (replies within a business day), and the automation works neatly.

Alex
 

Users who are viewing this thread

Back
Top Bottom