I'm currently using Dotnet 4.0 with VS 2010..
I want to test zip file using DotnetZip library.
this following is my coding :
public partial class Form1 : Form
private void button1_Click(object sender, EventArgs e)
using (ZipFile zip = new ZipFile())
string inputdirectory = @"D:\BackUp\20130102.bak";
string outputdirectory = @"D:\BackUp\20130102.ZIP";
inputdirectory = inputdirectory.Replace("\\", "\\\\");
outputdirectory = outputdirectory.Replace("\\", "\\\\");
DirectoryInfo di = new DirectoryInfo(inputdirectory);
zip.Comment = "This zip file is created using DotNetZip library";
this code is working fine... I can zip my file name 20130102.bak successfully, but when i use Winzip or winrar to extract -> then choose extract here-> it not only extract my file, but also include sub folder name BackUp.
I want to zip and extract without sub folder, Please help me...