Display Progress Bar While Zipping
Keywords: zip progress bar
Question:
Is it possible to display some sort of progress bar while unzipping?Answer:
I suppose its possible using a combination of the Zipper extender and the aStatusBar function in the Shell Operation Extender....***UNDEBUGGED** AddExtender("wwsop34i.DLL") AddExtender("WWZIP34I.DLL") numfiles = 79 astatusbar(0,"Processing","this is the text",numfiles,0) for xx = 1 to numfiles ;In the following code, we first test for the existence of the archive ;since it needs to preexist if we want to use the "g" (grow) option. If ;you're not using the "g" option, the archive will be created on the fly. ;Options: ;R=Recurse subdirectories option; g=allow appending to existing zip file xzipper=zZipFiles("g R", "myarchive.zip", onfile, "") timedelay(0.1) astatusbar(1,xx,"processing file number %xx% of numfiles",numfiles,xx) next
Article ID: W14813