Archive locked files

Jul 24, 2009 at 5:21 AM

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

Kendall

Coordinator
Jul 24, 2009 at 8:01 AM

SevenZipCompressor.ScanOnlyWritable? Or is it wrong?

Jul 24, 2009 at 8: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? 

Kendall

Coordinator
Jul 26, 2009 at 9:41 AM
Edited Jul 26, 2009 at 10:21 AM

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

Jul 27, 2009 at 2: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.

Coordinator
Jul 27, 2009 at 5: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 4: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?

Coordinator
Jul 27, 2009 at 8:51 PM

Only the disfunction, marking as an issue...

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

Resolved.