Winrar command line compression ratio

7,719

Use rar.exe instead of winrar.exe with -m5 parameter (max compression).

Share:
7,719

Related videos on Youtube

user1995781
Author by

user1995781

Updated on September 18, 2022

Comments

  • user1995781
    user1995781 almost 2 years

    I have a Winrar command line that look like this:

    "c:\Program Files\WinRAR\WinRAR.exe" a -afrar -s -m5 "e:\output.rar" "e:\foldertozip"
    

    The folder that I am compress by default is 9.08MB. The compression file output is 7.62MB. But if I try to right click the folder and select Add to "foldertozip.rar", the compressed file size is 1.35MB.

    How can I achieve that high compression ratio with command line?

    • user1995781
      user1995781 about 9 years
      @Hastur Yes, I tried to avoid both -s and -m5. Having -m5 or not does nothing different. But without -s, the file size is a bit larger. That is 8.1MB. The strange thing is I only get 1.35MB when compress with Add to "foldertozip.rar". If I choose Add to archive..., no matter how I set, the output is 7-8MB. What setting is Add to "foldertozip.rar" using?
    • Hastur
      Hastur about 9 years
      It should be possible to check it. Try to see in the option-settings and maybe in the advanced panel too. You can read the manual here: maybe it can be related with Dictionary size and Memory to use or less commonly with delta compression options in the command line default settings vs your actual profile GUI ones.
  • user1995781
    user1995781 about 9 years
    It appear error ERROR: Unknown option: afrar
  • Overmind
    Overmind about 9 years
    There is no afrar option for rar.exe. Run rar /? to see all valid options.