home *** CD-ROM | disk | FTP | other *** search
/ Freesoft 1997 May / Freesoft_1997-05_cd.bin / recenz / KOMPRES / RAR201 / RAR201.EXE / rar / RAR_FAQ.TXT < prev    next >
Text File  |  1997-02-13  |  16KB  |  357 lines

  1. --------------------------------------------------------------------------
  2.  
  3.                     RAR Frequently Asked Questions (FAQ)
  4.  
  5.            Copyright 1994-97 Eugene Roshal.  All rights reserved.
  6.  
  7.                                21-January-1997
  8.  
  9. --------------------------------------------------------------------------
  10.  
  11. Published by Eugene Roshal with assistance from the users of RAR, UNRAR,
  12. related utilities, and the RAR support sites.  This document may be freely
  13. distributed for non-commercial and information purposes.  This document 
  14. may not, under any circumstance, be traded, sold, or otherwise used for 
  15. commercial gain or purposes without prior written consent of Eugene 
  16. Roshal.
  17. --------------------------------------------------------------------------
  18.  
  19. Questions listed in this FAQ:
  20. --------------------------------------------------------------------------
  21. Q: While I can see that RAR is a great program with a terrific user 
  22.    interface, there appear to be no facilities available to convert my 
  23.    existing archived files to RAR format.
  24.  
  25. Q: RAR incorporates a number of different compression "methods", what are
  26.    the advantages and disadvantages of using them and which one would you 
  27.    recommend for daily use?
  28.  
  29. Q: I've heard a lot about "Solid" archives.  What are they and how can I use
  30.    them?
  31.  
  32. Q: How could a user of my BBS (E-mail system, FTP server etc) extract
  33.    files from RAR archives while RAR is shareware and one must register
  34.    after a 40 day evaluation period?
  35.  
  36. Q: I use "inspect" to examine mail packets, but it has no built-in support
  37.    for RAR.  How can Inspect be configured to 'see' into RAR files?
  38.  
  39. Q: The Maximus BBS software does not supply a viewer which is capable 
  40.    of viewing RAR files. how can this problem be overcome?
  41.  
  42. Q: Where can I get the latest releases of RAR and all the utilities that seem
  43.    to be becoming available for it these days?
  44.  
  45. Q: I am having problems using Netscape to download files with the .RAR
  46.    extension.
  47.  
  48. Q: Why the two-color progress bar disappeared since RAR 2.00 is released.
  49.  
  50. Q: I failed to extract files from a solid multivolume RAR archive because
  51.    one archive volume was damaged (bad floppy diskette). Help me!
  52.  
  53. Q. How can installation scripts be created, similar to that used on the
  54.    Windows distribution archive?
  55.  
  56. Questions and Answers:
  57. --------------------------------------------------------------------------
  58.  
  59. Q: While I can see that RAR is a great program with a terrific user 
  60.    interface, there appear to be no facilities available to convert my 
  61.    existing archived files to RAR format.
  62.  
  63. A: You are using an older version of RAR than 1.54 which includes it's
  64.    own conversion utility called RCVT.  This utility is FREE for RAR 
  65.    users and will handle most of your file conversion needs, including
  66.    the updating of you FILES.BBS lists.
  67. --------------------------------------------------------------------------
  68.  
  69. Q: RAR incorporates a number of different compression "methods", what are
  70.    the advantages and disadvantages of using them and which one would you 
  71.    recommend for daily use?
  72.  
  73. A: RAR contains 6 different methods of compressing files, which one you 
  74.    use would depend upon your requirements.  i.e. how much you demand the 
  75.    file be compressed balanced against how much time you are willing to 
  76.    devote to the compression process.  There is always a trade-off and the 
  77.    final choice must be yours.  Our recommendation is to leave compression
  78.    as "Normal" unless you have good reason to change it. 
  79.  
  80.      Store         No compression is used at all, the files are simply 
  81.                    collected into the archive.  This method is quite fast
  82.                    and is useful for simply copying files from one place 
  83.                    to another.
  84.      Fastest       The fastest compression method is applied.  This is
  85.                    slower than the "store" method.
  86.      Fast          A slightly better compression method is used, resulting
  87.                    in a smaller file.
  88.      Normal        A better compression method is used to achieve (almost)
  89.                    optimal compression, at a slight cost in time.
  90.      Good          A better compression method gains another increase of 
  91.                    (0.1 - 0.3%) 
  92.      Best          Uses the best compression method of all at the cost of
  93.                    20% - 100% more time, for the purists only.
  94.  
  95.    Here are the results of a compression test:
  96.  
  97.     Method used   Time taken     %    Compressed size     %
  98.  
  99.        -m0           6.64      37.9       354262       100.00
  100.        -m1          17.52     100.0       270534        76.37
  101.        -m2          17.61     100.5       269431        76.05
  102.        -m3          18.18     103.8       268314        75.74
  103.        -m4          19.22     116.6       268123        75.68
  104.        -m5          20.43     119.7       268091        75.68
  105.  
  106.    As you can see, as the packing method improves, the time required 
  107.    increases, but the increase in time is proportionally much greater than 
  108.    the gain acheived.  This why the default and recommended method is set
  109.    to -m3    
  110.  
  111.    If you wish to obtain the 'ultimate' compression from RAR, without 
  112.    regard for the time taken, then the best general set of rules would 
  113.    be:
  114.  
  115.    ..  Use the -s -m5 and -ds switches
  116.  
  117.    ..  Use the @ command with a file containing a list of the files to 
  118.        be archived.
  119.  
  120.    ..  Create the list of files to be archived using the following 
  121.        rule: all files should be 'grouped' according to file contents
  122.        (ANSI-code, ASCII source, binary, executable, etc)
  123.  
  124. --------------------------------------------------------------------------
  125.  
  126. Q: I've heard a lot about "Solid" archives.  What are they and how can I use
  127.    them?
  128.  
  129. A: It has been well known, for a long time, that one method of increasing 
  130.    the efficiency of compression, was to copy all the files to be compressed
  131.    into a single file, before compressing them. This is called creating a
  132.    "Solid" file before compressing. There are programs around which indeed
  133.    perform this operation and act as a pre-processor to another archiver.
  134.    RAR handles this function internally and invisibly to the user, it
  135.    simply "sees" all files together as a single data stream, with the
  136.    end result that the final output is significantly smaller than it would
  137.    otherwise be.  The gain to be had from this type of archive can be
  138.    significant and can be 10% - 60% of the size of the original archive.
  139.  
  140.    As with any other gain, there is a price to be paid and that price should 
  141.    be taken into consideration before creating a "Solid" archive.  The best 
  142.    way to understand if using a solid archive is best for you is to answer 
  143.    the following questions:
  144.  
  145.    Q: How often are you going to update or modify the archive?
  146.  
  147.    A: Probably never       ..  Use a solid archive
  148.  
  149.       Rarely               ..  Use a solid archive
  150.  
  151.       Frequently           ..  Use a normal archive
  152.  
  153.    Q: Are you using RAR as a packer for an electronic mail system?
  154.  
  155.    A: Yes                  ..  Use a solid archive
  156.  
  157.    IMPORTANT NOTE:
  158.  
  159.    Beware that to extract a file from solid archive RAR scans the whole
  160.    archive from the beginning.
  161.  
  162.    If you are using RAR to store archives to some unreliable storage media
  163.    (e.g. floppy disks, streamer tapes etc.) you should better use normal,
  164.    non solid mode. And you definetely should use the recovery option.
  165.  
  166.    It is impossible to extract files after damaged place in the solid
  167.    archive. However in some cases special recovery information helps to
  168.    rebuild the damaged archive if it is stored to the archive (the
  169.    recovery option was on, the '-rr' switch or 'rr' command applied).
  170.  
  171. --------------------------------------------------------------------------
  172.  
  173. Q: How could a user of my BBS (E-mail system, FTP server etc) extract
  174.    files from RAR archives while RAR is shareware and one must register
  175.    after a 40 day evaluation period?
  176.  
  177. A: The RAR distribution archive contains a free unRAR utility, UNRAR.EXE,
  178.    which can be used, without paying a license fee, by anyone wanting to 
  179.    extract archives created by RAR.  As an additional BONUS to this, the 
  180.    source code of a portable unRAR is included with RAR version above 1.53
  181. --------------------------------------------------------------------------
  182.  
  183. Q: I use "inspect" to examine mail packets, but it has no built-in support
  184.    for RAR.  How can Inspect be configured to 'see' into RAR files?
  185.  
  186. A: Although Inspect does not contain built-in support for RAR, the problem 
  187.    can be solved by making RAR support Inspect instead.  Load RAR and 
  188.    configure the external viewer to be Inspect.  
  189.    
  190.    On an archive that RAR recognises, pressing return on the archived file 
  191.    will open it up, and then hitting F3 will call up Inspect to view the 
  192.    files.  On (say) an ARC, hitting F3 on the archive will call up Inspect 
  193.    which will open the archive and allow you to view the contents.  This 
  194.    technique has been shown to work on RAR, ARJ, ZIP, ARC and LZH mail 
  195.    archives.
  196. --------------------------------------------------------------------------
  197.  
  198. Q: The Maximus BBS software does not supply a viewer which is capable 
  199.    of viewing RAR files. how can this problem be overcome?
  200.  
  201. A: Janis Kracht in Fidonet Zone 1 provides us with the following MECCA 
  202.    script which can solve the problem:
  203.  
  204.    [Comment RAR Contents Viewer by Janis Kracht 7-26-95]
  205.    [ifexist]c:\max\RARFILE.BBS [delete]C:\Max\RARFILE.BBS
  206.    [/l3][cls][ckoff][clear_stacked]
  207.    [lightcyan][cls][locate  1  1]Name of file to view (NO extension): 
  208.    [yellow][readln]
  209.    [ifentered] [goto L3]
  210.    [ifexist]%Q\%J.RAR [goto doit] 
  211.    Can't find the file!  Try again? (Y/n)[menu]yn|
  212.    [choice]| [goto l3]
  213.    [choice]y [goto l3]
  214.    [choice]n [goto endit]
  215.    [/doit][xtern_dos]rar l %Q\%J.RAR > RARFILE.ANS
  216.    [xtern_dos]c:\max\ans2bbsp RARFILE
  217.    [moreon]
  218.    [link]RARFILE.BBS
  219.    [/endit][exit]
  220. --------------------------------------------------------------------------
  221. Q: Where can I get the latest releases of RAR and all the utilities that seem
  222.    to be becoming available for it these days?
  223.  
  224. A: RAR has its own "FDN" (File Distribution Network) which is available from
  225.    RAR Registration/Support Sites, IFDC FileGate Hubs, Planet Connect 
  226.    Satellite Systems, PageSat Satellite Systems, paonline.com, and all 
  227.    FidoNet FileBone hubs. 
  228.  
  229.    A list of ftp sites may be obtained by sending an e-mail message to:
  230.  
  231.                 ftp.rar@knowledgebase.fi
  232. --------------------------------------------------------------------------
  233. Q: I am having problems using Netscape to download files with the .RAR
  234.    extension.
  235.  
  236. A: To configure Netscape, version 2.0, to recognize the .RAR file extension,
  237.    perform the following operations:
  238.  
  239.        Select the Options Menu.
  240.  
  241.        Select General Preferences.
  242.  
  243.        Select the Helpers tab in the window that comes up.
  244.  
  245.        Click the "Create New Type" Button.
  246.  
  247.        Fill in the Mime Type field as         application
  248.  
  249.        Fill in the Mime SubType field as      rar
  250.  
  251.    Now you will see that there is an entry in your list for application/rar.
  252.  
  253.        Select that item in the listbox.
  254.  
  255.        Edit the File Extensions field and place rar (no period) there.
  256.  
  257.        Select the Save to Disk radio button.
  258.  
  259.        Select OK.
  260. --------------------------------------------------------------------------
  261. Q: Why the two-color progress bar disappeared since RAR 2.00 is released.
  262.    Why no more compression ratio after every file processed is displayed.
  263.  
  264. A: Because of the new improved compression implementation in RAR 2.00,
  265.    now it is impossible to show ratio for every file.
  266.    The new algorithm treats groups of files and RAR has no information to
  267.    show as compression result (compression ratio) for particular file while
  268.    the whole file group processing is not completed.
  269.  
  270. ------------------------------------------------------------------------------
  271. Q: I failed to extract files from a solid multivolume RAR archive because
  272.    one archive volume was damaged (bad floppy diskette). Help me!
  273.  
  274. A: First of all, you should use RAR recovery option (-rr) when storing
  275.    archives onto not reliable media as the floppies are. Generally, it is 
  276.    not recommended to create solid archives in this case, use the normal 
  277.    (non solid) mode instead. You should be aware, that to extract files from
  278.    a particular solid volume RAR scans the whole set of previous archive 
  279.    volumes (.rar or .exe, .r00, .r01 etc).
  280.  
  281.    Steps of recovering process if you have damaged volume of solid archive:
  282.  
  283.    1) Try to repair the damaged volume (the 'r' option, 'repair' command).
  284.       It helps sometimes if RAR recovery was used when creating archive.
  285.       Rename recovered volume _recover.rar to the actual volume name and
  286.       try to process your archive from the first volume to the newly
  287.       recovered (if recovery were not used, RAR builds _reconst.rar).
  288.       
  289.    2) If previous procedure was not to any avail, then, unfortunately, 
  290.       chances to restore files are reduced. You should have source files 
  291.       contained in damaged volume (from the file where archive is broken
  292.       upto the end of the volume). And, you should extract all files from
  293.       all volumes until the CRC error in damaged place.
  294.  
  295.       Re-create volumes of the archive including damaged one, calling
  296.       RAR with the same options and archiving all files in the same order 
  297.       as when you created the archive for the first time. 
  298.  
  299.    If after that you are able to extract files from next volumes, you 
  300.    should say a hundred times "Thank you, my Lord!! I will never use again 
  301.    bad floppies, nor store multivolume solid archive to them without the
  302.    recovery option when there is a bare suspicion (0.000000001 percent of 
  303.    possibility) that the storage media is unreliable".
  304.       
  305. --------------------------------------------------------------------------
  306. Q. How can installation scripts be created, similar to that used on the
  307.    Windows distribution archive?
  308.  
  309. A. To make installation SFX archive for Windows you need:
  310.  
  311.    1. To create resources of all used dialogs.
  312.  
  313.       To create resources and to compile them later you must have
  314.       a resource editor and resource compiler.  They can be found,
  315.       for example, in C language packages.  In BCPP 4.5 'workshop.exe'
  316.       is a resource editor, 'brc32.exe' - resource compiler, in other
  317.       languages or other C versions they may have other names.
  318.  
  319.       To work with resources previous experience is necessary,
  320.       because their structure and processing are far from
  321.       self-explanetory.
  322.  
  323.       All windows must be created as dialogs (WS_POPUP style).
  324.  
  325.    2. Create a RAR archive with all the distribution files
  326.  
  327.    3. Create a script file and add it to the archive as the archive comment
  328.  
  329.       The Script language is described in SFX.TXT.  Also a working example
  330.       of a script file can be obtained from the WinRAR distributive.
  331.       Simply extract it using the 'cw' command: 
  332.  
  333.                     rar cw winrar20.exe example.s.
  334.  
  335.       With a resource editor you also can browse and possibly
  336.       adopt for your needs resources from winrar20.exe.
  337.  
  338.    4. Add resources to iwin.sfx module using the resource compiler.
  339.  
  340.       For Borland resource compiler it looks like this:
  341.  
  342.       copy iwin.sfx $$$.exe
  343.  
  344.       brc32.exe -fo$$$.res -fe$$$.exe setup.rc
  345.  
  346.       where setup.rc - resources file.
  347.  
  348.    5. Convert the archive to SFX using $$$.exe from the previous item.
  349.  
  350. ------------------------------------------------------------------------------
  351. end of file "RAR_faq.txt"
  352.  
  353. ------------------------------------------------------------------------------
  354.  
  355.  
  356.  
  357.