DotNetZip does not create Zip file from folder

Dec 8, 2008 at 6:37 PM
Hi, I'm trying to zip up a folder. I run the code below and didn't get any error but the zip output was not created. Can anyone please help?

using (ZipFile zip = new ZipFile("E:\\STWWEB1\\CDLG_ILL\\temp\\jpeg\\" + fName +".zip"))
{

zip.AddFile("E:\\STWWEB1\\CDLG_ILL\\temp\\jpeg\\" + fName + "\\" + fileName.ToString() + ".jpg");
zip.Save();

}
Dec 9, 2008 at 2:18 PM
The the following:

using (ZipFile zip = new ZipFile())
{

zip.AddFile("E:\\STWWEB1\\CDLG_ILL\\temp\\jpeg\\" + fName + "\\" + fileName.ToString() + ".jpg");
zip.Save("E:\\STWWEB1\\CDLG_ILL\\temp\\jpeg\\" + fName +".zip");

}
Coordinator
Dec 12, 2008 at 3:17 PM
You didn't get any error at all?

Did you successfully create a zip file using some different code?
I'd like to understand the problem you are having.