gridrunner
08-28-2006, 02:30 AM
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.
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.