HEX
Server: Apache/2.4.65 (Debian)
System: Linux kubikelcreative 5.10.0-35-amd64 #1 SMP Debian 5.10.237-1 (2025-05-19) x86_64
User: www-data (33)
PHP: 8.4.13
Disabled: NONE
Upload Files
File: //usr/share/doc/p7zip-full/DOC/MANUAL/cmdline/switches/shared.htm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
  <META http-equiv="Content-Type" content="text/html; charset=Windows-1252">
  <TITLE>-ssw (Compress files open for writing) switch</TITLE>
  <LINK href="style.css" rel="stylesheet" type="text/css">
</HEAD>

<BODY>

<H1>-ssw (Compress files open for writing) switch</H1>

<P>Compresses files open for writing by another applications. If this switch is not 
set, 7-zip doesn't include such files to archive.</P>

<H4>Syntax</H4>

<PRE class="syntax">
-ssw
</PRE>

<H4>Example</H4>

<PRE class="example">
7z a archive.7z -ssw *.txt
</PRE>

<P>compresses all <SPAN class="filename">*.txt</SPAN> files in 
current folder including files open for writing by another applications.</P>

<H4>Commands that can be used with this switch</H4>

<P>
  <A href="../commands/add.htm">a (Add)</A>,
  <A href="../commands/hash.htm">h (Hash)</A>,
  <A href="../commands/update.htm">u (Update)</A>
</P>

</BODY>
</HTML>