home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 August - Disc 3 / chip_20018103_hu.iso / segedlet / wrar270.exe / Rar.txt < prev    next >
Encoding:
Text File  |  2000-05-01  |  35.7 KB  |  995 lines

  1.                              User's Manual
  2.                              ~~~~~~~~~~~~~
  3.                      RAR 2.70 32-bit console version
  4.                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  5.  
  6.                        =-=-=-=-=-=-=-=-=-=-=-=-=-=-
  7.                        Welcome to the RAR Archiver!
  8.                        -=-=-=-=-=-=-=-=-=-=-=-=-=-=
  9.  
  10.  Introduction
  11.  ~~~~~~~~~~~~
  12.  
  13.     RAR is a powerful tool which allows you to manage and control archive
  14.   files. The archive is usually a regular file, which name has a ".rar"
  15.   suffix.
  16.  
  17.   RAR features include:-
  18.  
  19.     *  Highly sophisticated, original compression algorithm
  20.     *  Special compression algorithm optimized for multimedia data
  21.     *  Better compression than similar tools, using 'solid' archiving
  22.     *  Authenticity verification (registered version only)
  23.     *  Self-extracting archives and volumes (SFX)
  24.     *  Ability to recover physically damaged archives
  25.     *  Locking, password, file order list, file security & more ...
  26.  
  27.  
  28.  Configuration file
  29.  ~~~~~~~~~~~~~~~~~~
  30.  
  31.   RAR for Unix and BeOS read configuration information from the file
  32.   .rarrc in the user's home directory (stored in HOME environment variable).
  33.  
  34.   RAR for Windows reads configuration information from the file rar.ini,
  35.   placed in the same directory as the rar.exe file.
  36.  
  37.   This file may contain the following string:
  38.  
  39.   switches=<any RAR switches, separated with a space>
  40.  
  41.  
  42.  Environment variable
  43.  ~~~~~~~~~~~~~~~~~~~~
  44.  
  45.     Default parameters may be added to the RAR command line by establishing
  46.     an environment variable "RAR".
  47.  
  48.     For instance, in UNIX following lines may be added to your profile:
  49.  
  50.       RAR='-s -md1024'
  51.       export RAR
  52.  
  53.     RAR will use this string as default parameters in the command line and
  54.     will create "solid" archives with 1024 KB sliding dictionary size.
  55.  
  56.     RAR handles options with priority as following:
  57.  
  58.        command line switches                   highest priority
  59.        switches in the RAR variable            lower priority
  60.        switches saved in configuration file    lowest priority
  61.  
  62.  
  63.  Log file
  64.  ~~~~~~~~
  65.  
  66.   If the switch -ilog is specified in the command line or configuration
  67.   file, RAR will write informational messages, concerning errors
  68.   encountered while processing archives, to a log file.  In Unix and BeOS
  69.   this file is named .rarlog and placed in the user's home directory.
  70.   In Windows it is named rar.log and placed in the same directory as
  71.   the rar.exe file.
  72.  
  73.  
  74.  The file order list for solid archiving - rarfiles.lst
  75.  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  76.  
  77.   rarfiles.lst contains user-defined file list which tells RAR
  78.   the order to add files to a solid archive. It may contain file
  79.   names, wildcards and special entry - $default. The default
  80.   entry defines the place in order list for files not matched
  81.   with other entries in this file. The comment character is ';'.
  82.  
  83.   In Windows this file should be placed in the same directory as RAR,
  84.   in Unix and BeOS - to the user's home directory.
  85.  
  86.   Tips to provide improved compression and speed of operation:
  87.  
  88.   - similar files should be grouped together in the archive;
  89.   - frequently accessed files should be placed at the beginning.
  90.  
  91.  
  92.  RAR command line syntax
  93.  ~~~~~~~~~~~~~~~~~~~~~~~
  94.  
  95.  Syntax
  96.  
  97.     RAR <command>  [ -<switches> ]  <archive>  [ <@listfiles...> ]
  98.         [ <files...> ]  [ <path_to_extract\> ]
  99.  
  100.     Specify empty listfile name to read names from stdin
  101.  
  102.  Description
  103.  
  104.     Command line options (commands and switches) provides control of
  105.     creating and managing archives with RAR. The command is a string (or a
  106.     single letter) which commands RAR to perform a corresponding action.
  107.     Switches are designed to modify the way RAR performs the action. Other
  108.     parameters are archive name and files to be archived into or extracted
  109.     from the archive.
  110.  
  111.     In a UNIX environment you need to quote wildcards to avoid them being
  112.     processed by RAR itself. For example, this command will extract
  113.     *.asm files from RAR archives in current path:
  114.  
  115.        rar e '*.rar' '*.asm'
  116.  
  117.  
  118.     Command could be any of the following:
  119.  
  120.     a       Add files to archive.
  121.  
  122.             Example:
  123.  
  124.             create or update existent archive myarch, adding all files
  125.             in the current directory
  126.  
  127.             rar a myarch
  128.  
  129.  
  130.     c       Add archive comment. Comments are displayed while the archive is
  131.             being processed. Comment length is limited to 62000 bytes
  132.  
  133.             Examples:
  134.  
  135.             rar c distrib.rar
  136.  
  137.             Also comments may be added from a file:
  138.  
  139.             rar c -zinfo.txt dummy
  140.  
  141.  
  142.     cf      Add files comment. File comments are displayed when the 'v'
  143.             command is given. File comment length is limited to 32767 bytes.
  144.  
  145.             Example:
  146.  
  147.             rar cf bigarch *.txt
  148.  
  149.  
  150.     cw      Write archive comment to specified file.
  151.  
  152.             Example:
  153.  
  154.             rar cw oldarch comment.txt
  155.  
  156.  
  157.     d       Delete files from archive. Note, if the processing of this
  158.             command resulted in removing all the files from the archive, the
  159.             empty archive would removed.
  160.  
  161.  
  162.     e       Extract files to current directory.
  163.  
  164.  
  165.     f       Freshen files in archive. Updates those files changed since they
  166.             were packed to the archive. This command will not add new files
  167.             to the archive.
  168.  
  169.  
  170.     k       Lock archive. Any command which intend to change the archive
  171.             will be ignored.
  172.  
  173.             Example:
  174.  
  175.             rar k final.rar
  176.  
  177.  
  178.     l[t]    List contents of archive [technical]. Files are listed as with
  179.             the 'v' command with the exception of the file path. i.e. only
  180.             the file name is displayed. Optional technical information is
  181.             displayed when 't' modifier is used.
  182.  
  183.  
  184.     m[f]    Move to archive [files only]. Moving files and directories
  185.             results in the files and directories being erased upon
  186.             successful completion of the packing operation. Directories will
  187.             not be removed if 'f' modifier is used and/or '-ed' switch is
  188.             applied.
  189.  
  190.  
  191.     p       Print file to stdout.
  192.  
  193.  
  194.     r       Repair archive. Archive repairing is performed in two stages.
  195.             First, the damaged archive is searched for a recovery record
  196.             (see 'rr' command). If the archive contains a recovery record
  197.             and if the portion of the damaged data is continuous and less
  198.             than N*512 bytes, where N is number of recovery sectors placed
  199.             into the archive, the chance of successful archive
  200.             reconstruction is very high. When this stage has completed, a
  201.             new archive will be created, called _RECOVER.RAR.
  202.  
  203.             If a broken archive does not contain a recovery record or if
  204.             the archive is not completely recovered due to major damage, a
  205.             second stage is performed. During this stage only the archive
  206.             structure is reconstructed and it is impossible to recover
  207.             files which fail the CRC validation, it is still possible to
  208.             recover undamaged files which were inaccessible due to the
  209.             broken archive structure. Mostly this is useful for non-solid
  210.             archives.
  211.  
  212.             When the second stage is completed, the reconstructed archive
  213.             will be saved as _RECONST.RAR.
  214.  
  215.             While the recovery is in progress, RAR may prompt the user for
  216.             assistance when a suspicious file is detected.
  217.  
  218.                       Suspicious entry
  219.  
  220.               Name:  <possibly filename>
  221.               Size:  <size>    Packed: <compressed size>
  222.  
  223.                       Add it: Yes/No/All
  224.  
  225.             Answer 'y' to add this entry to the file _RECOVER.RAR.
  226.  
  227.             Example:
  228.  
  229.             rar r buggy.rar
  230.  
  231.  
  232.     rr[N]   Add data recovery record. Optionally, redundant information
  233.             (recovery record) may be added to an archive.  This will cause
  234.             a small increase of the archive size and helps to recover
  235.             archived files in case of floppy disk failure or data losses of
  236.             any other kind. A recovery record contains up to 4096 recovery
  237.             sectors. The number of sectors may be specified directly in the
  238.             'rr' command (N = 1, 2 .. 4096) or if it is not specified by the
  239.             user it will be selected automatically according to the archive
  240.             size: a size of the recovery information will be about 1.2%
  241.             of the total archive size, usually allowing the recovery of
  242.             up to 0.7% of the total archive size of continuously damaged data.
  243.  
  244.             If data are damaged continuously then each rr-sector helps to
  245.             recover 512 bytes of damaged information. This value may be
  246.             lower in cases of multiple damage.
  247.  
  248.             The size of the recovery record may be approximately determined
  249.             by the formula <archive size>/256 + <number of recovery
  250.             sectors>*512 bytes.
  251.  
  252.  
  253.     s[name] Convert archive to SFX. The archive is merged with SFX-module
  254.             (using a module in file default.sfx or specified in the switch).
  255.             In the Windows version default.sfx should be placed in the
  256.             same directory as the rar.exe, in Unix and BeOS - in the user's
  257.             home directory.
  258.  
  259.     t       Test archive files. This command performs a dummy file
  260.             extraction, writing nothing to the output stream, in order to
  261.             validate the specified file(s).
  262.  
  263.             Examples:
  264.  
  265.             Test archives in current directory:
  266.  
  267.             rar t *
  268.  
  269.             or for Unix:
  270.  
  271.             rar t '*'
  272.  
  273.             User may test archives in all sub-directories, starting
  274.             with the current path:
  275.  
  276.             rar t -r *
  277.  
  278.             or for Unix:
  279.  
  280.             rar t -r '*'
  281.  
  282.  
  283.     u       Update files in archive. Adds files not already in the archive
  284.             and updates files changed since they were packed to the archive.
  285.  
  286.  
  287.     v[t]    Verbosely list the contents of archive [technical].
  288.             Files are listed using the format: full pathname, file comment,
  289.             original and compressed size, compression ratio, last update
  290.             date and time, attributes, CRC, compression method and minimum
  291.             RAR version required to extract. Optional technical information
  292.             is displayed when 't' modifier is used.
  293.  
  294.             To list the contents of all archive volumes, use an asterisk
  295.             ('*') in place of the archive file extension or use the '-v'
  296.             switch.
  297.  
  298.             Example:
  299.  
  300.             direct archive content list (technical) to a file
  301.  
  302.             rar vt bambam >bambam.lst
  303.  
  304.  
  305.     x       Extract files with full path.
  306.  
  307.             Example:
  308.  
  309.             rar x -av- -c- dime 10cents.txt
  310.  
  311.             extract specified file to current path. AV check and comment
  312.             show are disabled.
  313.  
  314.  
  315.     Switches (used in conjunction with a command):
  316.  
  317.  
  318.     -?      Display help on commands and switches. The same as when none
  319.             or an illegal command line option is entered.
  320.  
  321.  
  322.     --      Stop switches scanning
  323.  
  324.             This switch tells to RAR that there is no more switches
  325.             in the command line. It could be useful, if either archive
  326.             or file name starts from '-' character. Without '--' switch
  327.             such name would be treated as switch.
  328.  
  329.             Example:
  330.  
  331.             add all files from the current directory to the solid archive
  332.             '-StrangeName'
  333.  
  334.             RAR a -s -- -StrangeName
  335.  
  336.     -ac     Clear Archive attribute after compression or extraction
  337.             (Windows version only).
  338.  
  339.  
  340.     -ag[format]
  341.             Generate archive name using the current date and time.
  342.  
  343.             Appends the current date string to an archive name when
  344.             creating an archive. Useful for daily backups.
  345.  
  346.             Format of the appending string is defined by the optional
  347.             "format" parameter or by "YYYYMMDDHHMMSS" if this parameter
  348.             is absent. Format string may include the following characters:
  349.  
  350.             Y   - year
  351.             M   - month
  352.             MMM - month name as text string (Jan, Feb, etc.)
  353.             D   - day
  354.             H   - hours
  355.             M   - minutes (treated as minutes if encountered after hours)
  356.             S   - seconds
  357.  
  358.             All other characters are added to an archive name without
  359.             changes.
  360.  
  361.             Examples:
  362.  
  363.             1) use the default YYYYMMDDHHMMSS format
  364.  
  365.                rar a -ag backup
  366.  
  367.             2) use DD-MMM-YY format
  368.  
  369.                rar a -agDD-MMM-YY backup
  370.  
  371.             3) use YYYYMMDDHHMM format
  372.  
  373.                rar a -agYYYYMMDDHHMM backup
  374.  
  375.  
  376.     -ao     Add files with Archive attribute set
  377.             (Windows version only).
  378.  
  379.             Example:
  380.  
  381.             add all disk C: files with Archive attribute set
  382.             to the 'f:backup' and clear files Archive attribute
  383.  
  384.             rar a -r -ac -ao f:backup c:\*.*
  385.  
  386.  
  387.     -ap     Set path inside archive. This path is merged to file
  388.             names when adding files to an archive and removed
  389.             from file names when extracting.
  390.  
  391.             For example, if you wish to add the file 'readme.txt'
  392.             to the directory 'DOCS\ENG' of archive 'release',
  393.             you may run:
  394.  
  395.             rar a -apDOCS\ENG release readme.txt
  396.  
  397.             or to extract 'ENG' to the current directory:
  398.  
  399.             rar x -apDOCS release DOCS\ENG\*.*
  400.  
  401.  
  402.     -as     Synchronize archive contents
  403.  
  404.             If this switch is used when archiving, those archived files
  405.             which are not present in the list of the currently added
  406.             files, will be deleted from archive. It is convenient to use
  407.             this switch in combination with -u (update) to synchronize
  408.             contents of an archive and an archiving directory.
  409.  
  410.             For example, after the command:
  411.  
  412.             rar a -u -as backup sources\*.cpp
  413.  
  414.             the archive 'backup.rar' will contain only *.cpp files
  415.             from directory 'sources', all other files will be deleted
  416.             from the archive. It looks similar to creating a new archive,
  417.             but with the one important exception: if no files are
  418.             modified since a last backup, the operation is performed
  419.             much faster than creation of a new archive.
  420.  
  421.  
  422.     -av     Put authenticity verification (registered versions only).
  423.             RAR will put, in every new and updated archive, information
  424.             concerning the creator, last update time and archive name.
  425.  
  426.             If an archive, containing authenticity verification, is being
  427.             modified and this switch is not specified, the authenticity
  428.             verification information will be removed.
  429.  
  430.             When extracting, testing, listing or updating and archive with
  431.             the '-av' switch, RAR will perform integrity validation and
  432.             display the message:
  433.  
  434.               Verifying authenticity information ...
  435.  
  436.             In the case of successful authenticity verification, the message
  437.             'Ok', creator name and last update information will be
  438.             displayed. In the case of authenticity verification failure, the
  439.             message 'FAILED' will be displayed.
  440.  
  441.             The Authenticity Verification feature, '-av,' is recommended for
  442.             use with archives in a software distribution environment.
  443.  
  444.             In order to enable the Authenticity verification feature, the
  445.             program MUST be registered. Please contact your local
  446.             distribution site or the world-wide distribution center.
  447.  
  448.  
  449.     -av-    Disable AV checking or adding.
  450.  
  451.  
  452.     -cfg-   Disable read configuration and environment.
  453.  
  454.  
  455.     -cl     Convert file names to lower case.
  456.  
  457.  
  458.     -cu     Convert file names to upper case.
  459.  
  460.  
  461.     -c-     Disable comments show.
  462.  
  463.  
  464.     -df     Delete files after archiving
  465.  
  466.             Move files to archive. This switch in combination with
  467.             the command "A" performs the same action as the command "M".
  468.            
  469.  
  470.     -dh     Open shared files
  471.  
  472.             Allows to process files opened by other applications
  473.             for writing.
  474.  
  475.             This option could be dangerous, because it allows
  476.             to archive a file, which at the same time is modifying
  477.             by an other application, so use it carefully.
  478.  
  479.  
  480.     -ds     Do not sort files while adding to a solid archive.
  481.  
  482.  
  483.     -ed     Do not add empty directories
  484.  
  485.             This switch indicates that empty directories are not to be
  486.             stored in the created archive.
  487.  
  488.  
  489.     -ee     Do not process extended attributes
  490.  
  491.             Disables saving and restoring extended file attributes.
  492.             Only for OS/2 and BeOS versions.
  493.  
  494.  
  495.     -ep     Exclude paths from names. This switch enables files to be added
  496.             to an archive without including the path information. This
  497.             could, of course, result in multiple files existing in the
  498.             archive with the same name.
  499.  
  500.  
  501.     -ep1    Exclude base dir from names. Do not store the path entered in
  502.             the command line.
  503.  
  504.             Example:
  505.  
  506.             all files and directories from the directory tmp will be added
  507.             to the archive 'test', but the path in archived names will not
  508.             include 'tmp\'
  509.  
  510.             rar a -ep1 -r test tmp\*
  511.  
  512.             This is equivalent to the commands:
  513.  
  514.             cd tmp
  515.             rar a -r ..\test
  516.             cd ..
  517.  
  518.  
  519.     -e<atr> Specifies file exclude attributes mask. <atr> is a number in the
  520.             decimal, octal (with leading '0') or hex (with leading '0x')
  521.             format. If result of bitwise AND between <atr> and file
  522.             attributes is nonzero, then file would not be added to archive.
  523.  
  524.             In the Windows version also is possible to use instead of
  525.             digital mask symbols D, S, H, A and R to denote directories
  526.             and files with system, hidden, archive and read-only attributes.
  527.             The order in which the attributes are given is not significant.
  528.  
  529.  
  530.     -f      Freshen files. May be used with archive extraction or creation.
  531.             The command string "a -f" is equivalent to the command 'f', you
  532.             could also use the switch '-f' with the commands 'm' or 'mf'. If
  533.             the switch '-f' is used with the commands 'x' or 'e', then only
  534.             old files would be replaced with new versions extracted from the
  535.             archive.
  536.  
  537.  
  538.     -idp    Disable percentage indicator.
  539.  
  540.             May be useful when redirecting output to a file.
  541.  
  542.  
  543.     -ierr   Send all messages to stderr.
  544.  
  545.  
  546.     -ilog   Log errors to file (registered version only).
  547.  
  548.  
  549.     -inul   Disable all messages.
  550.  
  551.  
  552.     -isnd   Enable sound.
  553.  
  554.  
  555.     -kb     Keep broken extracted files.
  556.  
  557.             RAR, by default, deletes files with CRC errors after
  558.             extraction. The switch -kb specifies that files with
  559.             CRC errors should not be deleted.
  560.  
  561.  
  562.     -m<n>   Set compression method:
  563.  
  564.        -m0   store     do not compress file when adding to archive
  565.        -m1   fastest   use fastest method (less compressive)
  566.        -m2   fast      use fast compression method
  567.        -m3   normal    use normal (default) compression method
  568.        -m4   good      use good compression method (more
  569.                        compressive, but slower)
  570.        -m5   best      use best compression method (slightly more
  571.                        compressive, but slowest)
  572.  
  573.             By default RAR uses -m3 method (Normal compression).
  574.  
  575.  
  576.     -md<n>  Select dictionary size <n> in KB. Must be 64, 128, 256, 512 or
  577.             1024 or a letter 'a', 'b', 'c', 'd' or 'e' respectively.
  578.  
  579.             The sliding dictionary is a special memory area used by the
  580.             compression algorithm. If the size of the file being compressed
  581.             (or the total files size in the case of a solid archive) is
  582.             greater than the dictionary size, then increasing the dictionary
  583.             size will generally increase compression ratio, decrease packing
  584.             speed and increase memory requirements.
  585.  
  586.             Default sliding dictionary size in 32-bit versions of RAR is 1024
  587.             KB. In RAR versions for Unix, Windows and other 32-bit platforms
  588.             it is possible to select five different sizes: 64, 128, 256, 512
  589.             or 1024 KB. Besides, speed of extraction in these versions does
  590.             not depend upon dictionary size. In 16-bit version RAR for DOS
  591.             the sliding dictionary size is fixed and equal to 64 KB.
  592.             Though RAR for DOS provides extracting files from large
  593.             dictionary archives.
  594.  
  595.             The amount of memory required to create large dictionary
  596.             archives is determined as 5*<dictionary size>+2560KB. About 1 Mb
  597.             is required for extraction and 5*<dictionary size>+3584KB to
  598.             update solid archives.
  599.  
  600.             RAR for DOS can extract from large dictionary archives using
  601.             conventional, EMS and disk memory. If no EMS or disk
  602.             cache is available, the operation may slow down significantly. RAR
  603.             for DOS cannot convert large dictionary archives to SFX with the
  604.             default SFX module and cannot update such solid archives.
  605.  
  606.             Example:
  607.  
  608.             RAR a -s -mdd sources *.asm
  609.                 or
  610.             RAR a -s -md512 sources *.asm
  611.  
  612.             Will create a solid archive using a 512 KB dictionary.
  613.  
  614.     -mm[f]  Multimedia compression [force]. Enables a special multimedia
  615.             compression algorithm. It is intended to compress digital audio
  616.             data containing up to four 8-bit or two 16-bit channels. It
  617.             works well with  true color (24-bit) bitmaps as well.
  618.             Improvement in the compression ratio up to 30% over the normal
  619.             compression may be achieved.
  620.  
  621.             When archiving file in the multimedia mode RAR performs
  622.             intelligent data analysis and may use, for different parts of
  623.             the file, general or multimedia compression depending on which
  624.             is more suitable. Such analysis allows optimum performance when
  625.             different data types are merged in the same file. The 'f'
  626.             modifier forces the multimedia compression to be used for the
  627.             whole file; it may help when certain multimedia files are to be
  628.             compressed, but in most cases only increases archive size.
  629.  
  630.             Both the -m<N> "Set compression method" and -s "Create solid
  631.             archive" switches can be used with multimedia compression,
  632.             but they are in effect for those file parts where the general
  633.             algorithm applies.
  634.  
  635.             If -mm is used with non-multimedia data, the compression ratio
  636.             is usually unchanged in comparison with the general method, but
  637.             due to multimedia analysis overhead, the packing speed is always
  638.             slower. The usage of -mm is not recommended with normal data
  639.             files.
  640.  
  641.             Example:
  642.  
  643.             rar a -m5 -s -mm All_My_Songs.rar *.wav
  644.  
  645.             Use the tightest compression method, solid archiving and
  646.             multimedia compression with smart analysis, which method
  647.             should be applied for particular data:
  648.  
  649.  
  650.     -ol     Save symbolic links as the link instead of the file.
  651.             Unix and BeOS versions only.
  652.  
  653.  
  654.     -os     Save NTFS streams. Win32 version only.
  655.  
  656.             This switch has meaning only for NTFS file system under
  657.             Windows NT and allows to save alternative data streams
  658.             associated with a file. It is especially important under
  659.             Windows 2000, which uses streams to keep some file dependent
  660.             information like file descriptions. If you use RAR to backup
  661.             your NTFS disks, it is recommended to specify this switch.
  662.  
  663.  
  664.     -ow     Use this switch when archiving to save file security
  665.             information and when extracting to restore it.
  666.  
  667.             Unix and BeOS RAR versions save file owner and group
  668.             when using this switch.
  669.  
  670.             Win32 version stores owner, group, file permissions and
  671.             audit information, but only if you have necessary privileges
  672.             to read them. Note that only NTFS file system supports
  673.             file based security under Windows.
  674.  
  675.     -o+     Overwrite existing files.
  676.  
  677.  
  678.     -o-     Do not overwrite existing files.
  679.  
  680.  
  681.     -p<p>   Encrypt files with the string <p> as password while archiving.
  682.             The password is case-sensitive. If you omit the password on the
  683.             command line, you will be prompted with message "Enter password".
  684.  
  685.             Example:
  686.  
  687.             rar a -pmyhoney secret1 *.txt
  688.  
  689.             add files *.txt and encrypt them with password "myhoney".
  690.  
  691.  
  692.     -p-     Do not query password
  693.  
  694.  
  695.     -r      Recurse subdirectories. May be used with commands:
  696.             a, u, f, m, x, e, t, p, v, l, c, cf and s.
  697.  
  698.             When used with the commands 'a', 'u', 'f', 'm' will process
  699.             files in all sub-directories as well as the current working
  700.             directory.
  701.  
  702.             When used with the commands x, e, t, p, v, l, c, cf or s will
  703.             process all archives in sub-directories as well as the current
  704.             working directory.
  705.  
  706.  
  707.     -r0     Similar to -r, but when used with the commands 'a', 'u', 'f',
  708.             'm' will recurse subdirectories only for those names, which
  709.             include wildcard characters '*' and '?'
  710.  
  711.  
  712.     -ri<p>[:<s>]
  713.             Set priority and sleep time. Available only in RAR for Windows.
  714.             This switch is used to regulate system load by RAR in a
  715.             multitasking environment. The possible task priority values are
  716.             from 0 to 15. When <p> is equal to 0, the default task priority
  717.             is used, 1 corresponding to the lowest task priority, 15 - to
  718.             the highest. The sleep time <s> is a value from 0 to 1000
  719.             (milliseconds). This is the period of time that RAR will give
  720.             back to system after every read or write during the packing or
  721.             unpacking operation. The sleep time setting is useful when
  722.             several tasks with the same priority are running in the system.
  723.  
  724.             Example:
  725.  
  726.             execute RAR with default priority and 10 ms of sleep after
  727.             each read or write
  728.  
  729.             rar a -r -sfx -ri0:10 backup *.*
  730.  
  731.  
  732.     -rr[N]  Add a data recovery record. This switch is used when creating or
  733.             modifying archive to add a data recovery record to the archive.
  734.             See the 'rr[N]' command description for details.
  735.  
  736.  
  737.     -s      Create solid archive. Solid is a special archive type. Please
  738.             refer to the appendix "Glossary" for further information.
  739.  
  740.             Example:
  741.  
  742.             create solid archive sources.rar with 512 KB dictionary,
  743.             recursing all directories, starting with the current directory.
  744.             Add only .asm files:
  745.  
  746.             rar a -s -md512 sources.rar *.asm -r
  747.  
  748.  
  749.     -s<N>   Create solid groups using file count
  750.  
  751.             Similar to -s, but reset solid statistics after compressing
  752.             <N> files. Usually decreases compression, but also
  753.             decreases losses in case of solid archive damages.
  754.  
  755.  
  756.     -se     Create solid groups using extension
  757.  
  758.             Similar to -s, but reset solid statistics if file extension
  759.             is changed. Usually decreases compression, but also
  760.             decreases losses from solid archive damages.
  761.  
  762.  
  763.     -sv     Create independent solid volumes
  764.  
  765.             Similar to -s, but reset solid statistics as soon as possible
  766.             when starting a new volume. Ignored, if used to create
  767.             non-volume archive. Usually slightly decreases compression, but
  768.             also seriously decreases data losses, when one volume in volume
  769.             set is damaged. In such case you may try to start extraction
  770.             from the next volume after damaged. Note that because
  771.             of internal buffering, sometimes RAR cannot reset dictionary
  772.             immediately after creating a new volume and one or more small
  773.             files in the beginning of new volume may still use data from
  774.             the previous volume.
  775.  
  776.  
  777.     -s-     Disable solid archiving
  778.  
  779.  
  780.     -sfx[name]
  781.             Create SFX archives. If this switch is used when creating a new
  782.             archive, a Self-Extracting archive (using a module in file
  783.             default.sfx or specified in the switch) would be created.
  784.             In the Windows version default.sfx should be placed in the
  785.             same directory as the rar.exe, in Unix and BeOS - in the user's
  786.             home directory.
  787.  
  788.             Example:
  789.  
  790.             rar a -sfxwincon.sfx myinst
  791.  
  792.             create SelF-eXtracting (SFX) archive using wincon.sfx
  793.             SFX-module.
  794.  
  795.  
  796.     -tk     Keep original archive date. Prevents RAR from modifying the
  797.             archive date when changing an archive.
  798.  
  799.  
  800.     -tl     Set archive time to newest file. Forces RAR to set the date of a
  801.             changed archive to the date of the newest file in the archive.
  802.  
  803.  
  804.     -tn<time>
  805.             Process files newer than the specified time period. Format
  806.             of the time string is:
  807.  
  808.             [<ndays>d][<nhours>h][<nminutes>m][<nseconds>s]
  809.  
  810.             For example, use switch -tn15d to process files newer
  811.             than 15 days and -tn2h30m to process files newer than
  812.             2 hours 30 minutes.
  813.  
  814.  
  815.     -to<time>
  816.             Process files older than the specified time period. Format
  817.             of the switch is the same as -tn<time>.
  818.  
  819.  
  820.     -u      Update files. May be used with archive extraction or creation.
  821.             The command string "a -u" is equivalent to the command 'u', you
  822.             could also use the switch '-u' with the commands 'm' or 'mf'. If
  823.             the switch '-u' is used with the commands 'x' or 'e', then files
  824.             not present on the disk and files newer than their copies on the
  825.             disk would extracted from the archive.
  826.  
  827.  
  828.     -v<size>[k|b|f]
  829.             Create volumes with size=<size>*1000 [*1024 | *1].
  830.             By default this switch uses <size> as thousands (1000) of bytes
  831.             (not 1024 x bytes). You may also enter the size in kilobytes
  832.             using the symbol 'k', in bytes using the symbol 'b' or
  833.             select one from several predefined values using the symbol 'f'
  834.             following the numerical value. Predefined values can be
  835.             360, 720, 1200, 1440 or 2880 and replaced with corresponding
  836.             floppy disk size.
  837.  
  838.             If the size is omitted, autodetection will be used.
  839.  
  840.             If volumes are created on removable media, then after
  841.             the first volume has been created, user will be prompted
  842.             with:
  843.  
  844.               Create next volume: Yes/No/All/Quit
  845.  
  846.             At this moment in time, you should change the disks. Answering
  847.             'A' will cause all volumes to be created without a pause.
  848.  
  849.             The first volume file in a multi-volume set has the extension
  850.             .RAR, following volumes are numbered from .R00 to .R99.
  851.  
  852.             When extracting or testing a multi-volume archive you must use
  853.             only the first volume name (*.RAR). If there is no next volume
  854.             on the drive and the disk is removable, the user will be
  855.             prompted with:
  856.  
  857.              Insert disk with <next volume name>
  858.  
  859.             Insert the disk with the correct volume and press any key.
  860.  
  861.             If while extracting, the next volume is not found and volumes
  862.             are placed on the non-removable disk, RAR will abort with
  863.             the error message:
  864.  
  865.              Cannot find <volume name>
  866.  
  867.             Archive volumes may not be modified. The commands 'd', 'f', 'u',
  868.             's' can not be used with Multi-volume sets. The command 'a' may
  869.             be used only for the creation of a new multi-volume sequence.
  870.  
  871.             It is possible, although unlikely, that the file size, of a file
  872.             in a multi-volume set, could be greater than it's uncompressed
  873.             size. This is due to the fact that 'storing' (no compression if
  874.             size increases) cannot be enabled for multi-volume sets.
  875.  
  876.             Archive volumes may be Self-Extracting (SFX). Such an archive
  877.             should be created using both the '-v' and '-sfx' switches.
  878.  
  879.             Example:
  880.  
  881.             create archive in volumes of fixed size:
  882.  
  883.             rar a -s -v1440 floparch.rar *.*
  884.  
  885.             will create solid volumes of size 1440000 bytes.
  886.  
  887.     -vd     erase disk contents before creating volume
  888.  
  889.             All files and directories on the target disk will be erased
  890.             when '-vd' is used.  The switch applies only to removable
  891.             media, the hard disk cannot be erased using this switch.
  892.  
  893.     -w<p>   Assign work directory as <p>. This switch may be used to assign
  894.             the directory for temporary files.
  895.  
  896.  
  897.     -x<f>   Exclude specified file <f>, wildcards may be used. You may
  898.             specify the switch '-x' several times:
  899.  
  900.             Example:
  901.  
  902.             rar a -r -x*.bak -x*.rar rawfiles
  903.  
  904.             *.bak and *.rar files will not be added to rawfiles
  905.  
  906.  
  907.     -x@<lf> Exclude files using specified list file.
  908.  
  909.             Example:
  910.  
  911.             rar a -x@exlist.txt arch *.exe
  912.  
  913.  
  914.     -y      Assume Yes on all queries.
  915.  
  916.  
  917.     -z<f>   Read archive comment from file <f>.
  918.  
  919.  
  920.  Limitations
  921.  ~~~~~~~~~~~
  922.  
  923.     Pathname is limited to 259 symbols.
  924.  
  925.     Maximum archive comment length is 62000 bytes.
  926.  
  927.     Command limitations:
  928.  
  929.     The commands 'd','u','f','c','cf' will not operate with archive
  930.     volumes.
  931.  
  932.     The command 'a' cannot be used to update an archive volume, only to
  933.     create one.
  934.  
  935.  
  936.  Exit values
  937.  ~~~~~~~~~~~
  938.  
  939.     RAR exits with a zero code (0) in case of successful operation. The exit
  940.     code of non-zero means the operation is cancelled due to error:
  941.  
  942.      255   USER BREAK       User stopped the process
  943.  
  944.        8   MEMORY ERROR     Not enough memory for operation
  945.  
  946.        7   USER ERROR       Command line option error
  947.  
  948.        6   OPEN ERROR       Open file error
  949.  
  950.        5   WRITE ERROR      Write to disk error
  951.  
  952.        4   LOCKED ARCHIVE   Attempt to modify an archive previously locked
  953.                             by the 'k' command
  954.  
  955.        3   CRC ERROR        A CRC error occurred when unpacking
  956.  
  957.        2   FATAL ERROR      A fatal error occurred
  958.  
  959.        1   WARNING          Non fatal error(s) occurred
  960.  
  961.        0   SUCCESS          Successful operation (User exit)
  962.  
  963.  
  964.  Glossary
  965.  ~~~~~~~~
  966.  
  967.     Archive      Special file containing one or more files optionally
  968.                  compressed and/or encrypted.
  969.  
  970.     Compression  A method of encoding data to reduce it's size.
  971.  
  972.     CRC          Cyclic Redundancy Check. Mathematical method calculating
  973.                  special checking information for data validity.
  974.  
  975.     SFX          Archive module used to extract files from when executed.
  976.                  (SelF-eXtracting module), usually in the form of a .EXE
  977.                  file.
  978.  
  979.     Solid        An archive packed using a special compression method which
  980.                  sees all files as one continuous data stream. Particularly
  981.                  advantageous when packing a large number of small files.
  982.  
  983.     Volume       Part of a split archive. Splitting an archive to volumes
  984.                  allows storing them on diskettes. Solid volumes must be
  985.                  extracted starting from first in sequence.
  986.  
  987.  
  988.  
  989.  Copyrights
  990.  
  991.     (c) 1993-2000 Eugene Roshal
  992.  
  993.  
  994.  
  995.