Menu

Switch -SFX[name] - create self-extracting archive


If this switch is used when creating a new archive, a self-extracting archive (SFX) will be created. By default WinRAR uses as its SFX module the file Default.SFX for RAR archives and Zip.SFX for ZIP archives. These modules must be in the same folder as winrar.exe. It is possible to specify in the "-sfx" switch an alternate SFX module name.

Shell mode equivalent of this switch is the "Create SFX archive" option in the Archive name and parameters dialog.

Examples

  1. create self-extracting solid volumes

WinRAR a -sfx -v360 -s Games

  1. create archive using WinCon.SFX module

WinRAR a -sfxWinCon.SFX Gift.rar

See also s[name] command.