Command A - add to an archive
Add specified files and folders to an archive. This is a command line equivalent of the command Add.
Note: because archive volume modification is disabled, this command cannot be used to update an archive volume, only to create one.
WinRAR a help *.hlp
WinRAR a -r -v362 -s -sfx -rr save
because no file names are specified, all files (*) are assumed.
The following command will add all files from the folder Bitmaps and its subfolders to the RAR archive Pictures.rar:
WinRAR a Pictures.rar Bitmaps
The following command will add all files from the folder Bitmaps, but not from its subfolders, because switch -r is not specified:
WinRAR a Pictures.rar Bitmaps\*