Menu

RAR.ini file


If we wish to apply some command line switches by default, we can place them to rar.ini text file. Such file can be created either in the same folder as WinRAR.exe or in %APPDATA%\WinRAR folder.

This file can contain the following string:

switches=<any RAR switches separated by spaces>

It is also possible to specify separate switch sets for individual WinRAR commands using the following syntax:

switches_<command>=<any WinRAR switches separated by spaces>

Most of switches specified in rar.ini are used only in the command line mode. Some switches can be applicable both in shell and in command line modes.

Examples

  1. Apply -m5 -s switches in command line mode by default

switches=-m5 -s

  1. Use -m5 -s switches for "a" command, use -o+ for "x" command.

switches_a=-m5 -s

switches_x=-o+