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