Alex Rivera | Logout

How to compress a directory into a zip file programmatically

Asked 2010-03-23T09:02:19.123
16

I want to compress an entire directory which can have any number of subdirectories into a single ZIP file.

I am able to compress a single file into a zip file programmatically.

To compress an entire directory, i can think of a recursive program that walks through each subdirectory and compresses it.

But Is there any simple way to compress the entire folder using the similar code, without having to write any recursive functions?

Edit
Report

1 Answer

2
answered 2010-03-23T09:08:52.170

Your Answer