Title: RE: .CAB?
-----Original Message-----
From: FARRINGTON, RYAN [mailto:[EMAIL PROTECTED]]

damn =) ah well... Thanks I was doing that anyway but I wanted to find a way to do it totally in PERL and not have to rely on a third-party executable 

How ambitious are you feeling?  M$ seems to be keeping the wraps on the DIAMONDAPI calls, but you can find the C header files here: http://mateusz.free.fr/mscab/.  Look at FCI.h (File Compression Interface) inside MsCab061-Src.cab.  You may be able to work out the Win32::API calls.  I haven't played with this yet, and am not sure if it is legally redistributable.  Is there any special reason for using CAB over another format?

Chris 

 -----Original Message-----
From: Jan Dubois [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 13, 2002 12:17 PM
To: Bullock, Howard A.
Cc: 'FARRINGTON, RYAN'; [EMAIL PROTECTED]; Perl List
Subject: Re: .CAB?


On Fri, 13 Dec 2002 12:23:49 -0500, "Bullock, Howard A."
<[EMAIL PROTECTED]> wrote:

>I thought I had seen a Win32::Cabinet module, but can not seem to find it on
>ActiveState's site or at CPAN.org.

It is part of the Perl Dev Kit.  But it won't help you extract files from
a CAB, it only builds them.

The only way to access files inside a CAB from Perl (that I know about) is
to shell out and run expand.exe to extract the file to the filesystem:

| C:\>expand -?
| Microsoft (R) File Expansion Utility  Version 5.00.2134.1
| Copyright (C) Microsoft Corp 1990-1999.  All rights reserved.
|
| Expands one or more compressed files.
|
| EXPAND [-r] Source Destination
| EXPAND -r Source [Destination]
| EXPAND -D Source.cab [-F:Files]
| EXPAND Source.cab -F:Files Destination
|
|   -r            Rename expanded files.
|   -D            Display list of files in source.
|   Source        Source file specification.  Wildcards may be used.
|   -F:Files      Name of files to expand from a .CAB.
|   Destination   Destination file | path specification.
|                 Destination may be a directory.
|                 If Source is multiple files and -r is not specified,
|                 Destination must be a directory.

Cheers,
-Jan



LEGAL NOTICE
Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this E-mail by anyone else is unauthorized. If you are not an addressee, any disclosure or copying of the contents of this E-mail or any action taken (or not taken) in reliance on it is unauthorized and may be unlawful. If you are not an addressee, please inform the sender immediately.

Reply via email to