How to zip and unzip multiple folders with a password

0 Answers 62 Views
General Discussions
George C.
Top achievements
Rank 2
Iron
Veteran
George C. asked on 02 May 2022, 10:07 PM

Greetings,

With the given solution in this link it is possible to zip and unzip multiple files with a password, but I also need to zip and unzip folders with files in them. Considering there are folders and files in a single directory, how is it possible to zip them all with the same hierarchy of files and folders? I tested the solution in a scenario that there are folders in a directory and the result was taking out all files out of their corresponding folders and putting them all in one single zip file.

Svilen
Telerik team
commented on 05 May 2022, 07:55 AM

Hey, George,

Svilen here, I will be glad to help out with this question.

I've attached a simple project, which extracts folders and files in a way that preserves their hierarchy. You might need to configure the path strings if you want to specify a different .zip source path and extraction output path. I hope you find it useful. Please let me know if you need any assistance with this. 

Regards,
Svilen
Progress Telerik

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
George C.
Top achievements
Rank 2
Iron
Veteran
Share this question
or