Switch -R- - disable recursion


Disable the subfolder recursion.

Even without -r switch WinRAR can enable the recursion automatically in some situations. Switch -r- prohibits it.

If you specify a folder name when archiving and if such name does not include wildcards, by default WinRAR adds the folder contents even if switch -r is not specified. Also WinRAR automatically enables the recursion if disk root without wildcards is specified as a file mask. Switch -r- disables such behavior.

For example:

WinRAR a -r- arc dirname

command will add only the empty 'dirname' folder and ignore its contents. Following command:

WinRAR a -r- arc c:\

will compress contents of root c: folder only and will not recurse into subfolders.

See also: