How would I compress a folder with 7Zip in C#?
I want to compress a folder into a file with the .7z extension, with 7zip. I would like to know how I would do this, because I'm not sure (which is why I'd asking.) This is in C#. Links to pages or sample code would be helpful. code to zip or unzip file using 7zip this code is used to zip a folder public void CreateZipFolder(string sourceName, string targetName) { // this code use for zip a folder sourceName = @"d:\Data Files"; // folder to be zip targetName = @"d:\Data Files.zip"; // zip name you can change ProcessStartInfo p = new ProcessStartInfo(); p.FileName = @"D:\7-Zip\7z.exe"; p