Switch -S[=<par>] - create solid archive
Solid archiving is the special archiving mode, which improves the compression ratio, but makes archive updating and access to individual archived files slower. It is described in more details in Solid archives topic.
This switch can include one or more optional modifiers after '=' character. Most of these modifiers control the solid statistics reset inside of archive, overriding the continuous solid stream mode of plain -s switch. Resetting the statistics typically leads to lower compression, faster access to individual files, stored after reset, and higher chances to extract such files if archive was broken. Here are switches with possible modifiers.
| -s=- | Do not use solid archiving even if it is enabled in the default compression profile, rar.ini configuration file or RARINISWITCHES environment variable. |
| -s=d | Do not reset the solid statistics between volumes. |
| -s=v | Always reset the solid statistics between volumes. By default WinRAR resets the solid statistics at the first new file in a new volume, provided that enough data was packed since the previous reset. This switch resets it regardless of data size. |
| -s=e | Reset the solid statistics if file extension is changed. |
| -s=<N>f | Reset the solid statistics after adding every N files. |
| -s=<N><k|m|g> | Reset the solid statistics after packing every data block of specified size in KB, MB or GB, such as -s=100m. |
| -s=r | Reset the solid statistics before adding new files to existing archive. |
It is allowed to combine multiple modifiers in the same switch, such as -s=e100f.
This switch is supported only for RAR archives and applicable only when creating a new archive. Its shell mode equivalent is Create solid archive option in the archiving dialog.
add all *.c and *.h files from the current folder to the solid archive Sources
WinRAR a -s Sources *.c *.h