Unzip / Unrar as context menu commands
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Cool_amigaN
    Posts: 761 from 2011/11/30
    Hey all, here's a simple question which I have trouble answering: how is it possible to add a context menu command (similar to Ambient's lha extract) to unzip .zip, .rar and .7zip files? Is there a specific program that handles all zip file types? I am mostly interested for the first two (zip and rar) but would also like to know about 7zip as well.

    And happy holidays everybody!
    Amiga gaming Tribute: Watch, rate, comment :)
  • »30.12.13 - 07:28
    Profile Visit Website
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12157 from 2003/5/22
    From: Germany
    > how is it possible to add a context menu command (similar to Ambient's lha extract) to
    > unzip .zip, .rar and .7zip files? Is there a specific program that handles all zip file types?

    I recommend using the XAD system, i.e. the XADUnFile command. For ZIP files you'd do it as follows (adaption of my recent German posting, so GUI element designations may be off):

    1. double-click "Settings" -> "Ambient" -> "File types" -> "application" -> "zip"
    2. click "Add"
    3. enter a "Name:" (e.g. "decompress", "extract" or similar)
    4. set "Event type" to "Menu"
    5. activate "Work directory is source"
    6. click "Add"
    7. set "Type" to "AmigaDOS"
    8. enter "MOSSYS:C/xadunfile %sp %S" as "Command"
    9. click "Change"
    10. click "Ok"
    11. click "Save"
  • »30.12.13 - 08:31
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Cool_amigaN
    Posts: 761 from 2011/11/30
    Thank you so much! Will try it once I get back home. Imho, this should be also preconfigured on Papi's awesome pack :)

    Btw, you know how to do it for rar and 7zip as well? I am exchanging lots of files with my PC and I would prefer to perform unpacking at MorphOS.

    [ Edited by Cool_amigaN 30.12.2013 - 10:52 ]
    Amiga gaming Tribute: Watch, rate, comment :)
  • »30.12.13 - 08:52
    Profile Visit Website
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12157 from 2003/5/22
    From: Germany
    > you know how to do it for rar and 7zip as well?

    It should work the same using XAD for RAR and 7ZIP (with "rar" or "7zip" instead of "zip" in step #1, of course), except that you need to install http://aminet.net/package/util/arc/xad_7z (m68k binary) for 7ZIP and maybe http://aminet.net/package/util/arc/xad_rar (m68k binary)* for RAR. I'm not in front of my MorphOS machine now so cannot check if RAR is already covered by MorphOS' XAD system (check with XADLibInfo command).

    * Edit: http://fabportnawak.free.fr/misc/xad_rar.lha has a MorphOS-native client

    [ Edited by Andreas_Wolf 01.01.2014 - 16:04 ]
  • »30.12.13 - 09:36
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Cool_amigaN
    Posts: 761 from 2011/11/30
    @Andreas_Wolf

    Thanks, it worked as you told me for the zip archives :)

    The UnRAR context command was set as pre-default so there was no need to mess with it.

    Will try the 7z solution you proposed me as well once I get the time. Btw, I got really good times in unpacking rather big archives of zip and rar formats under MorphOS yesterday.

    And one last thing, if anybody is reading this, please make it the default behavior for MorphOS and/or Pack Ultimate since lha, zip, rar and 7zip files are very very common.
    Amiga gaming Tribute: Watch, rate, comment :)
  • »31.12.13 - 06:59
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Jupp3
    Posts: 1193 from 2003/2/24
    From: Helsinki, Finland
    Andreas_Wolf,
    Quote:

    maybe http://aminet.net/package/util/arc/xad_rar (m68k binary) for RAR.

    iirc someone (Fab?) released MorphOS native rar extractor for xad long ago.

    Note: I think xad already comes with "a" rar extractor. Only a very outdated one that can only extract REALLY old archives, and is practically useless (but might fool you to think that "it should work")
  • »31.12.13 - 09:18
    Profile Visit Website
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12157 from 2003/5/22
    From: Germany
    > iirc someone (Fab?) released MorphOS native rar extractor for xad long ago.

    Indeed. It's http://fabportnawak.free.fr/misc/xad_rar.lha released 4 years ago.
  • »01.01.14 - 14:53
    Profile