Annie
Annie

Reputation: 672

create zip file with folder structure with c#

i have a folder structure and files in those folders.i have to zip all those files with folder structure. i found examples which only zip a file not all folder structure. i am working on VS 2008. please suggest me the way to zip files with folder structure with c#

Upvotes: 1

Views: 1906

Answers (2)

Annie
Annie

Reputation: 672

actually i dont have to create folders first. it creates folder automatically when i specify files with folder name. and it works with both the links provided. thanks guys

Upvotes: 1

Jude Cooray
Jude Cooray

Reputation: 19872

Have you tried DotNetZip ?

You can use it to zip a folder.

Upvotes: 1

Related Questions