I am trying to open a cab file on my local machine and then add or
delte some file to it and then recompress it into a CAB file again.

Can I use vbscript to do this?

Thanks

Re: Can I use VbScript to extract a file from a CAB fie? by Nic

Nic
Thu Feb 17 22:35:30 CST 2005

> Can I use vbscript to do this?
The short answer is yes.

You will need a 3rd party component/interface tho.


Nic Roche

<Masoud@yahoo.com> wrote in message
news:88oa1193totb4fnau9r9hdgpnsvhsnik03@4ax.com...
>I am trying to open a cab file on my local machine and then add or
> delte some file to it and then recompress it into a CAB file again.
>
> Can I use vbscript to do this?
>
> Thanks



Re: Can I use VbScript to extract a file from a CAB fie? by Masoud

Masoud
Thu Feb 17 23:15:07 CST 2005



Like what ?any idea?

Appreciate your help

Masoud

On Fri, 18 Feb 2005 14:35:30 +1000, "Nic Roche" <nicroche@hotmail.com>
wrote:

>> Can I use vbscript to do this?
>The short answer is yes.
>
>You will need a 3rd party component/interface tho.
>
>
>Nic Roche
>
><Masoud@yahoo.com> wrote in message
>news:88oa1193totb4fnau9r9hdgpnsvhsnik03@4ax.com...
>>I am trying to open a cab file on my local machine and then add or
>> delte some file to it and then recompress it into a CAB file again.
>>
>> Can I use vbscript to do this?
>>
>> Thanks
>


Re: Can I use VbScript to extract a file from a CAB fie? by Michael

Michael
Thu Feb 17 23:27:14 CST 2005

Masoud@yahoo.com wrote:
> I am trying to open a cab file on my local machine and then add or
> delte some file to it and then recompress it into a CAB file again.
>
> Can I use vbscript to do this?


Not with *just* vbscript...

Microsoft Cabinet Software Development Kit
http://support.microsoft.com/?id=310618



--
Michael Harris
Microsoft MVP Scripting
http://maps.google.com/maps?q=Sammamish%20WA%20US



Re: Can I use VbScript to extract a file from a CAB fie? by Masoud

Masoud
Fri Feb 18 00:10:31 CST 2005

Mike:
Thank you so much for taking time to help me out.
I am new to VbScript so please bear it with me

I am trying to write a HTML page to carry this job.
Lets say I am having a button on the page thst when I press it to
extract the contet of a Cab file to some directory.

The page will be located on the local machine and all the access would
be also local.

Regards
Masoud


On Thu, 17 Feb 2005 21:27:14 -0800, "Michael Harris \(MVP\)" <mikhar
at mvps dot org> wrote:

>Masoud@yahoo.com wrote:
>> I am trying to open a cab file on my local machine and then add or
>> delte some file to it and then recompress it into a CAB file again.
>>
>> Can I use vbscript to do this?
>
>
>Not with *just* vbscript...
>
>Microsoft Cabinet Software Development Kit
>http://support.microsoft.com/?id=310618


Re: Can I use VbScript to extract a file from a CAB fie? by mayayana

mayayana
Fri Feb 18 08:25:00 CST 2005

> Like what ?any idea?
>

I use PowerArchiver, but most zip programs can do it.
A PA sample is below. PAPath is the PowerArchiver
executable. CabPath is full path of CAB file.
FolderPath is extraction path.
If you have a different zip program you can look in
the help for command line options. (If you only have
the XP built-in zip functions then you need a zip program.)

PAPath = Chr(34) & "C:\Program Files\PowerArchiver\POWERARC" & Chr(34)
CabPath = "C:\Folder1\sample.cab"
FolderPath = "C:\ExtractFolder"
SH = CreateObject("WScript.Shell")

Ret = SH.Run(PAPath & " -e " & chr(34) & CabPath & chr(34) & " " & chr(34) &
FolderPath & chr(34), , True)



Re: Can I use VbScript to extract a file from a CAB fie? by Nic

Nic
Fri Feb 18 08:29:59 CST 2005

> Like what ?any idea?

We write our own. (wrapping cabinet.dll)..

I'm sure there are plenty of COM Objects available that have this
functionality.

XFile is one.
http://support.softartisans.com/kbview_798.aspx
It has a hefty price tag but I'm sure there are others.

I'm supprised vendors did not respond.


Nic Roche

<Masoud@yahoo.com> wrote in message
news:bdua115ga9o62g4668pprgo5grbl4f5pi0@4ax.com...
>
>
> Like what ?any idea?
>
> Appreciate your help
>
> Masoud
>
> On Fri, 18 Feb 2005 14:35:30 +1000, "Nic Roche" <nicroche@hotmail.com>
> wrote:
>
>>> Can I use vbscript to do this?
>>The short answer is yes.
>>
>>You will need a 3rd party component/interface tho.
>>
>>
>>Nic Roche
>>
>><Masoud@yahoo.com> wrote in message
>>news:88oa1193totb4fnau9r9hdgpnsvhsnik03@4ax.com...
>>>I am trying to open a cab file on my local machine and then add or
>>> delte some file to it and then recompress it into a CAB file again.
>>>
>>> Can I use vbscript to do this?
>>>
>>> Thanks
>>
>