Windows Vista Forums

Reading Zip, GZip

  1. #1


    Rob Kenny Guest

    Reading Zip, GZip

    I have found the Community Extensions to create zip and gzip files but I can not find anything to
    read or extract files from an archive.

    I have a large set of gz files that I need to expand to a new location, does anyone know of any
    other scripts out there that I may have missed?

    I did start looking at System.IO.Compression, but could not get anything to work in PS.

    Many Thanks

    Rob Kenny



      My System SpecsSystem Spec

  2. #2


    Matthias Tacke Guest

    Re: Reading Zip, GZip

    Rob Kenny wrote:
    > I have found the Community Extensions to create zip and gzip files but I
    > can not find anything to read or extract files from an archive.
    >
    > I have a large set of gz files that I need to expand to a new location,
    > does anyone know of any other scripts out there that I may have missed?
    >
    > I did start looking at System.IO.Compression, but could not get anything
    > to work in PS.
    >

    A short google for: powershell gunzip
    got me here:
    <http://www.codeplex.com/PowerShellCX/WorkItem/View.aspx?WorkItemId=7776>

    HTH

    --
    Matthias
    Tacke

      My System SpecsSystem Spec

  3. #3


    Rob Kenny Guest

    Re: Reading Zip, GZip

    Matthias Tacke wrote:
    > Rob Kenny wrote:
    >> I have found the Community Extensions to create zip and gzip files but
    >> I can not find anything to read or extract files from an archive.
    >>
    >> I have a large set of gz files that I need to expand to a new
    >> location, does anyone know of any other scripts out there that I may
    >> have missed?
    >>
    >> I did start looking at System.IO.Compression, but could not get
    >> anything to work in PS.
    >>

    > A short google for: powershell gunzip
    > got me here:
    > <http://www.codeplex.com/PowerShellCX/WorkItem/View.aspx?WorkItemId=7776>
    >
    > HTH
    >


    I got there as well, it is proposed for the next version

    Rob Kenny

      My System SpecsSystem Spec

  4. #4


    Oisin Grehan Guest

    Re: Reading Zip, GZip

    On Jun 9, 11:57 am, Rob Kenny <r...@otherniceman.net> wrote:
    > Matthias Tacke wrote:
    > > Rob Kenny wrote:
    > >> I have found the Community Extensions to create zip and gzip files but
    > >> I can not find anything to read or extract files from an archive.

    >
    > >> I have a large set of gz files that I need to expand to a new
    > >> location, does anyone know of any other scripts out there that I may
    > >> have missed?

    >
    > >> I did start looking at System.IO.Compression, but could not get
    > >> anything to work in PS.

    >
    > > A short google for: powershell gunzip
    > > got me here:
    > > <http://www.codeplex.com/PowerShellCX/WorkItem/View.aspx?WorkItemId=7776>

    >
    > > HTH

    >
    > I got there as well, it is proposed for the next version
    >
    > Rob Kenny- Hide quoted text -
    >
    > - Show quoted text -


    Hi,

    As the person who wrote the 1.1 archive creation cmdlets, I'm also
    writing the archive readers for 1.2; we didn't really have the time to
    get full read/write ready, so I chose write abilities for 1.1; I
    figured this would be more useful than read, especially for admins.

    - Oisin


      My System SpecsSystem Spec

  5. #5


    Lance Guest

    Re: Reading Zip, GZip

    On Jun 9, 11:57 am, Rob Kenny <r...@otherniceman.net> wrote:
    > Matthias Tacke wrote:
    > > Rob Kenny wrote:
    > >> I have found the Community Extensions to create zip and gzip files but
    > >> I can not find anything to read or extract files from an archive.

    >
    > >> I have a large set of gz files that I need to expand to a new
    > >> location, does anyone know of any other scripts out there that I may
    > >> have missed?

    >
    > >> I did start looking at System.IO.Compression, but could not get
    > >> anything to work in PS.

    >
    > > A short google for: powershell gunzip
    > > got me here:
    > > <http://www.codeplex.com/PowerShellCX/WorkItem/View.aspx?WorkItemId=7776>

    >
    > > HTH

    >
    > I got there as well, it is proposed for the next version
    >
    > Rob Kenny- Hide quoted text -
    >
    > - Show quoted text -


    This capability is included in NetCmdlets: http://www.nsoftware.com/powershell/.

    Lance
    http://geekswithblogs.net/Lance/


      My System SpecsSystem Spec

  6. #6


    Lance Guest

    Re: Reading Zip, GZip

    > This capability is included in NetCmdlets:http://www.nsoftware.com/powershell/.

    You know, I'm sorry, I suppose I could have been a bit more helpful an
    actually posted an example, huh? Here you go:

    1. To extract a gzip file into a specific output location:
    read-zip C:\testing\test.gz -output C:\testing\output\ -format gzip

    2. To extract a regular zip file (in this case the default -format is
    used (zip)):
    read-zip C:\testing\test.zip -output C:\testing\zipoutput\

    jar and tar formats are also supported, and the write-zip cmdlet can
    create self extracting archives too (-format zipsfx)

    Lance
    http://geekswithblogs.net/Lance/


      My System SpecsSystem Spec

  7. #7


    The Other Nice Man Guest

    Re: Reading Zip, GZip

    On 11 Jun, 17:31, Lance <lmrob...@gmail.com> wrote:
    > > This capability is included in NetCmdlets:http://www.nsoftware.com/powershell/.

    >
    > You know, I'm sorry, I suppose I could have been a bit more helpful an
    > actually posted an example, huh? Here you go:
    >
    > 1. To extract a gzip file into a specific output location:
    > read-zip C:\testing\test.gz -output C:\testing\output\ -format gzip
    >
    > 2. To extract a regular zip file (in this case the default -format is
    > used (zip)):
    > read-zip C:\testing\test.zip -output C:\testing\zipoutput\
    >
    > jar and tar formats are also supported, and the write-zip cmdlet can
    > create self extracting archives too (-format zipsfx)
    >
    > Lancehttp://geekswithblogs.net/Lance/


    Thanks

    I had found the NetCmdlets as well, I know there is a trial version,
    but I know that at the moment I won't be able to get authorisation for
    a full copy so I feel bad able using the trial version for real one
    off business use. Does that make me a strange person?


      My System SpecsSystem Spec

Reading Zip, GZip

Similar Threads
Thread Thread Starter Forum Replies Last Post
not reading my 120g only reading 24g joe81c Drivers 1 18 Sep 2009
GZip Compression :( Carlo Razzeto .NET General 9 28 Mar 2008
Working with Gzip in the same way as WinZip Ger F. Vista General 1 29 Jan 2008
WCF client->J2EE server - using GZip Lars Hulvej Indigo 0 14 Dec 2007
reading in CSV fixitchris PowerShell 9 19 Nov 2006