[erlang-questions] extract files from a .CAB archive

Cameron Kerr <>
Thu May 21 08:53:47 CEST 2009


CAB is not a standard file format, so you shouldn't expect any  
standard library support, especially on Linux. For Linux, there is a  
cabextract command, and Windows has something similar, so it shouldn't  
be difficult to change the command to suit your environment anyway if  
you need to port.

On 21/05/2009, at 6:33 PM, 曹煦 wrote:

> The application is designed to run on Linux. So I need to install a
> unzipping tool like that for every client's environment.
> That may be my last choice.
> Thanks any way.
> Cameron Kerr 写道:
>> Might I suggest os:cmd/1? Windows has a command for extracting such
>> files; cab*.exe?
>>
>> On 21/05/2009, at 5:37 PM, 曹煦 wrote:
>>
>>> I am wondering if there is any way to create and unzip CAB format  
>>> files
>>> in erlang.
>>> I have checked the functions in module zip and erl_tar. However, it
>>> seems like that
>>> the CAB format is not supported.
>>>
>>> Thanks.
>>> _______________________________________________
>>> erlang-questions mailing list
>>> 
>>> http://www.erlang.org/mailman/listinfo/erlang-questions
>>>
>>
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-questions

-- 
Cameron Kerr <>
Teaching Fellow, Computer Science, University of Otago






More information about the erlang-questions mailing list