1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed 7ZIP Compression Method Option Doesn't Work

Discussion in 'Support' started by RogerB, Oct 10, 2016.

  1. RogerB

    Joined:
    Apr 18, 2014
    Messages:
    142
    Likes Received:
    3
    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...
     
  2. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,854
    Likes Received:
    83

Share This Page