0

I used SevenZipSharp for compress my folders I have some code in c#

SevenZipExtractor.SetLibraryPath(@"C:\Program Files\7-Zip\7z.dll");//x64    
var cmpr = new SevenZipCompressor();
cmpr.CompressionFinished += (s, e) => { dof.DoFinishEvent(); cmpr = null; };
cmpr.BeginCompressDirectory("C:\\58", "C:\\58.7z");

It's working, but archive which created has some lockenter image description here

Please, help me to fix it! Thanks!

houssam
  • 1,823
  • 15
  • 27
bigjoy10
  • 55
  • 1
  • 8
  • Looks like the archive file is being flagged as 'read only'. I'm not sure how to tell the 7zip library not to do this, but you could try clearing the flag yourself: `new FileInfo("C:\\58.7z").IsReadOnly = false` – Mike Strobel Oct 15 '14 at 15:24
  • don't work on drive C , windows put special security for drive C, try D (if any) and tell us. – houssam Oct 15 '14 at 17:10
  • No. This not work (IsRead and drive D) – bigjoy10 Oct 15 '14 at 18:04

0 Answers0