Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2005
    Posts
    11

    I can not unzip a zip file

    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

  2. #2
    Join Date
    Jun 2002
    Location
    Israel
    Posts
    1,843
    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

  3. #3
    Join Date
    Aug 2005
    Posts
    11
    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.


    Quote Originally Posted by yosik
    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

  4. #4
    Join Date
    Jun 2002
    Location
    Israel
    Posts
    1,843
    Sorry...I don't see why ot doesn't work. Anyone else?
    Yossi

  5. #5
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    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
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

Similar Threads

  1. HOWTO: Create a Project Template
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-28-2002, 01:49 PM
  2. HOWTO: "Hide" Externally Referenced Files
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-23-2002, 03:19 PM
  3. Can search allow manual browse even if file is found?
    By RichardShaw in forum Setup Factory 5.0
    Replies: 2
    Last Post: 08-28-2000, 06:08 PM
  4. Replies: 0
    Last Post: 08-17-2000, 02:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts