How to Zip the folder using C#
public static void AddFolderToZip(string sourcePath,string zipFullName) { DirectoryInfo CurrentFolder = new DirectoryInfo(sourcePath); DirectoryInfo RootFolder = CurrentFolder.Parent; DirectoryInfo[] SubFolders = RootFolder.GetDirectories(CurrentFolder.Name); if (SubFolders.LongLength > 0) { //Add all subfolders to the zip if any for (int i = 0; i < SubFolders.Length; i++) { ProcessStartInfo p = new ProcessStartInfo(); p.FileName = "7za.exe"; if (!(new FileInfo(zipFullName).Exists)) { p.Arguments = "a -tzip \"" + zipFullName + "\" \"" + SubFolders[0].FullName + "\" -mx=9"; } else {