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.
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.
Here fileDirPath is the path to my folder which has all my files and preferredPath is the path where I want my .zip file to be.
eg: var fileDirePath = @“C:\Temp”; var prefferedPath = @“C:\Output\results.zip”;
I agree that this is a duplicate, but I've used the demo from this codeproject before and it is very helpful:
http://www.codeproject.com/Articles/27148/C-NET-Interface-for-7-Zip-Archive-DLLs
Scroll down the page for the demo and good luck!
code to zip or unzip file using 7zip
this code is used to zip a folder
this code is used to zip a file
this code is used for unzip