ZipArchive compression progress report

1 Answer 25 Views
ProgressBar
Alessandro
Top achievements
Rank 1
Iron
Alessandro asked on 15 Jan 2024, 05:14 PM

Hi everyone,

is possible with the Zip Library of Telerik UI for WinForms to get the status of compression progress?

What I want is to fill a radprogressbar, so the user can see how much work was already done.

Tank you.

Alessandro

Alessandro
Top achievements
Rank 1
Iron
commented on 15 Jan 2024, 05:29 PM

I use C#, I forget to tell

1 Answer, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 16 Jan 2024, 08:04 AM

Hello Alessandro,

Yes, it is possible to achieve the described scenario. I am attaching a sample project for your disposal that shows how it can be done.

I hope this helps.

Regards,
Yoan
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Alessandro
Top achievements
Rank 1
Iron
commented on 16 Jan 2024, 03:47 PM | edited

ok, it works fine for decompressing, but my scenario is a little bit different...

I have a directory (Master) containg other dirs (subs) with files in them, I need, if possible to report compression (zipping, not unzipping) of the Master directory, mantaining in the zip file the direcotry hierarchy?

Thank you

Yoan
Telerik team
commented on 19 Jan 2024, 11:00 AM

Hello Alessandro, 

Please excuse me for the misunderstanding. There is indeed a way to archive a hierarchy of folders with a progress bar with the same project. The easiest approach would be to utilize the ZipFile.CreateFromDirectory method that comes from "Telerik.Windows.Zip.Extensions".

I have modified the previous project by replacing the unarchiving functionality with the archiving one and adding the required references. I am attaching the project for your disposal so you can examine it and use it for your own purposes.

I hope this helps.

Regards,

Yoan

 

Tags
ProgressBar
Asked by
Alessandro
Top achievements
Rank 1
Iron
Answers by
Yoan
Telerik team
Share this question
or