Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2006
    Posts
    7

    Filename of a currently extracted file from a zip file

    I want to get the full path and name of the file that gets currently extracted from a zip file using the Zip.Extract funtion. The return value (string) in the callback funktion seems returns 'item x of y'.

    Here the function i use:

    function ShowExtract(String, Percent)
    DlgProgressBar.SetPos(CTRL_PROGRESS_BAR_01, Percent);
    DlgStaticText.SetProperties(CTRL_STATICTEXT_LABEL_ 01, {Text=String, Visible=true});
    return true;
    end

    function extractFiles()
    source = SessionVar.Expand("%AppFolder%").."\\media.zip";
    target = SessionVar.Expand("%AppFolder%");
    Zip.Extract(source, {"*.*"}, target, true, true, "", 3, ShowExtract);
    end


    Thanks for help.

  2. #2
    Join Date
    Aug 2006
    Posts
    7

    Modified my function

    I modified the function to show only the total progress of unzipping. Still looking to get file name from String.

    function ShowExtract(String, Percent, Status)
    if (Status == 0) then
    DlgProgressBar.SetPos(CTRL_PROGRESS_BAR_01, Percent);
    DlgStaticText.SetProperties(CTRL_STATICTEXT_LABEL_ 01, {Text=String, Visible=true});
    end
    return true;
    end

    function extractFiles()
    source = SessionVar.Expand("%AppFolder%").."\\media.zip";
    target = SessionVar.Expand("%AppFolder%");
    Zip.Extract(source, {"*.*"}, target, true, true, "", ZIP_OVERWRITE_ALWAYS, ShowExtract);
    end

Similar Threads

  1. Error 3038: Could not seek in compressed file
    By Rikard in forum Setup Factory 7.0
    Replies: 2
    Last Post: 05-25-2006, 11:55 AM
  2. 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
  3. 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
  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