Fixed 7ZIP Compression Method Option Doesn't Work

Apr 18, 2014
165
3
#1
From the help for the 7ZIP command:

/Kn Set the compression method.

0 LZMA (default)
1 BZip2
2 Delta
3 Copy (no compression)
4 Deflate
5 LZMA2​

Whenever /K is used (I've tried all values from zero to five) the command fails with a "parameter is incorrect" error:

Code:
TCC  20.00.21 x64   Windows 10 [Version 6.3.14393]
TCC Build 21   Windows 10 Build 14393

d:\test>*dir /b
foobar.txt

d:\test>7zip foo.7z foobar.txt
<= D:\test\foobar.txt

d:\test>*dir /b
foo.7z
foobar.txt

d:\test>7zip /K1 foo_1.7z foobar.txt
TCC: (Sys) The parameter is incorrect.
 "K1"
Usage : 7ZIP [A:[[-][+]rhsdaecjot] /A /C /D /F /Kn /Ln /M /P /O:[-]adegnrstu /P /Q /R /S"password" /T /T
EST /U /V] ziparchive [@file] file...