How to set path for zipfile

Nov 16, 2009 at 11:34 AM

Hi all,

I am trying to set path for the zip folder and zip the files from selected folders without creating instance of parent path in the zip file.How to do this ,It very urgent.


With Regard's


Nov 16, 2009 at 2:43 PM

I don't understand what you mean.

you'll need to give a very urgent example.

Nov 23, 2009 at 10:26 AM

Hi Sowmya,

Did you get any solution to this? Please let me know ASAP as it's very urgent for me too.

Many Thanks.


Nov 23, 2009 at 9:29 PM

Try this:

zip.AddFile("c:\Folder1\FileOnDisk.txt", "");


Nov 24, 2009 at 3:10 AM


zip.AddFile(filename,specify the path where to save the file);

zip.AddFile("c:\Folder1\FileOnDisk.txt", "");

Its working..

Nov 24, 2009 at 4:32 AM

Thanks a lot Cheeso & Sowmya. It works fine and resolved my problem...................