PDA

View Full Version : I can not unzip a zip file


MariaClaudia
11-03-2005, 08:19 PM
Hi friends:
I use this code :

StatusDlg.Show();
Zip.Extract("AutoPlay\\Codisac\\Fuentes.zip", {"*.*"}, "G:\\Download\\Codisac", true, true, "123456789", 3, nil);
StatusDlg.Hide();

the same example code in the help file, but it only unzip the folders but not the files in the folders. Why?

Thanks a lot and sorry my grammar

Maria Claudia

yosik
11-04-2005, 12:55 AM
Instead of:
Zip.Extract("AutoPlay\\Codisac\\Fuentes.zip", {"*.*"}, "G:\\Download\\Codisac", true, true, "123456789", 3, nil);
you should try
Zip.Extract("AutoPlay\\Codisac\\Fuentes.zip", {"*.*"}, "G:\\Download\\Codisac", true, true, "123456789", 0, nil);

There is a typo in the zip. Example page in the help file.
Values for the overwrite parameter are 0 (never), 1 (newer) and 2 (always).

Good luck

Yossi

MariaClaudia
11-04-2005, 10:36 AM
Thanks a lot Yossi but the problem is the same. I change my code to this one:

sLocation = Dialog.FolderBrowse("Save Location", "Please select a directory to save the selected file(s) in:");

if sLocation ~= "CANCEL" then
StatusDlg.Show(0, false);
Zip.Extract("AutoPlay\\Codisac\\Fuentes.zip", {"*.*"}, sLocation, true, true, "123456789", 0, nil);
StatusDlg.Hide();
else
Dialog.Message("Error", "You must select at least one file to extract.");
end

but it only unzip the folders but not the files.


Instead of:
Zip.Extract("AutoPlay\\Codisac\\Fuentes.zip", {"*.*"}, "G:\\Download\\Codisac", true, true, "123456789", 3, nil);
you should try
Zip.Extract("AutoPlay\\Codisac\\Fuentes.zip", {"*.*"}, "G:\\Download\\Codisac", true, true, "123456789", 0, nil);

There is a typo in the zip. Example page in the help file.
Values for the overwrite parameter are 0 (never), 1 (newer) and 2 (always).

Good luck

Yossi

yosik
11-05-2005, 11:19 AM
Sorry...I don't see why ot doesn't work. Anyone else?
Yossi

TJ_Tigger
11-05-2005, 11:24 AM
What program was used to create the zip file? Also, what level of encryption was used on the zip file? If memory serves me, there was a problem with WinZip at the best level of encryption.

Tigg