[chef] Re: Windows system standard program for unzip-ing archives?


Chronological Thread 
  • From: Brad Knowles < >
  • To:
  • Cc: Bradford L Knowles < >
  • Subject: [chef] Re: Windows system standard program for unzip-ing archives?
  • Date: Fri, 21 Nov 2014 09:51:32 -0600

On Nov 21, 2014, at 9:38 AM, Steven Murawski 
< >
 wrote:

> You could use the Shell.Application COM object to extract the zip file 
> (works on all versions).
> 
> Here's some sample PowerShell.  You'd want to parameterize and maybe toss 
> in some error handling, but that should get you going.
> 
> $shell = new-object -com shell.application
> $zip = $shell.NameSpace(“C:\somearchive.zip”)
> foreach($item in $zip.items())
> {
> $shell.Namespace(“C:\temp\somearchive”).copyhere($item)
> }

That looks like a pretty simple solution that I definitely need to take a 
look at.  I've already done a lot of parameterization anyway, so this would 
be good re-use.


Thanks everyone!  I now have three different solutions that I should be able 
to use on both Win2k3 and Win2k8, and I just need to take a stab at a bit of 
testing to see which one we're likely to go with.

Thanks again!

--
Brad Knowles 
< >
LinkedIn Profile: <http://tinyurl.com/y8kpxu>

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail




Archive powered by MHonArc 2.6.16.

§