[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Can I open RAR files?

Xarc

5/22/2007 6:34:00 AM

Hi!
How can I open .rar files from ruby?

--
Posted via http://www.ruby-....

5 Answers

akbarhome

5/22/2007 2:06:00 PM

0

On May 22, 1:33 pm, Xarc <Shark...@gmail.com> wrote:
> Hi!
> How can I open .rar files from ruby?
>
> --
> Posted viahttp://www.ruby-....

Your best bet is using system call for unrar program.

vasudevram

5/22/2007 6:28:00 PM

0

On May 22, 7:05 pm, akbarhome <akbarh...@gmail.com> wrote:
> On May 22, 1:33 pm, Xarc <Shark...@gmail.com> wrote:
>
> > Hi!
> > How can I open .rar files from ruby?
>
> > --
> > Posted viahttp://www.ruby-....
>
> Your best bet is using system call for unrar program.

You may also be able to use popen(), assuming the command line version
of RAR supports taking arguments to specify listing the contents of
a .rar file. This way would be a bit more "interactive" than using
system() to tell RAR to list the .rar files contents to a temp file,
and then reading that file from your Ruby code.

Vasudev Ram
Dancing Bison Enterprises
http://www.dancin...


Jorge Domenico Bucaran Romano

5/22/2007 6:52:00 PM

0

Xarc wrote:
> Hi!
> How can I open .rar files from ruby?

There is no native way or right way to do that, the thing is that RAR is
a propietary file compression format. As <Akbar Home> and <vasudevram>
said that is your best shot.

--
Posted via http://www.ruby-....

akbarhome

5/22/2007 6:58:00 PM

0

On May 22, 1:33 pm, Xarc <Shark...@gmail.com> wrote:
> Hi!
> How can I open .rar files from ruby?
>
> --
> Posted viahttp://www.ruby-....

Your best bet is using system call for unrar program.

Xarc Asda qwerty

5/23/2007 7:08:00 AM

0

Ok. Thank you! :D

--
Posted via http://www.ruby-....