This project is read-only.

Archive locked files

Jul 24, 2009 at 6:21 AM

Is there a way to use the switch "-ssw" (compress files open for writing)? I can't seem to find it.


Jul 24, 2009 at 9:01 AM

SevenZipCompressor.ScanOnlyWritable? Or is it wrong?

Jul 24, 2009 at 9:43 PM

Thanks for the reply.  It is obivous I am a beginner.  I can not seem to find the statement: "SevenZipCompressor.ScanOnlyWritable".  I have looked in SevenZipCompressor, it is not there.  What am I doing wrong? 


Jul 26, 2009 at 10:41 AM
Edited Jul 26, 2009 at 11:21 AM

Use the new 0.55 release shipped today. <SevenZipCompressor instance>.ScanOnlyWritable

Jul 27, 2009 at 3:25 AM

I am trying to keep up with you.  I downloaded the .55 version of 7zdll.7z.  The 7z.dll file in the zip file is dated 5.30.09.  Is this the correct file? I still can not find SevenZipCompressor.ScanOnlyWritable.

Jul 27, 2009 at 6:51 AM

The following code must work:


SevenZipCompressor tmp = new SevenZipCompressor();            
tmp.ScanOnlyWritable = true;
tmp.CompressDirectory(@"c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\1033", @"D:\Temp\arch.7z");

Jul 27, 2009 at 5:29 PM

I resolved my reference problem to SevenZipCompressor.ScanonlyWritable.  However, I tested the update by opening a file with another program (i.e. locking it) and tried to compress it.  I get an error that the file is locked by another process.  When I use 7z with the -ssw switch from a command prompt it will compress the same file.  Any ideas?

Jul 27, 2009 at 9:51 PM

Only the disfunction, marking as an issue...

Jul 27, 2009 at 9:52 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Jul 28, 2009 at 12:10 PM