SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

Creating a zip file for write in PowerShell

Last post 05-05-2009 10:38 AM by tfl. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 05-05-2009 10:38 AM

    • tfl
    • Not Ranked
    • Joined on 05-05-2009
    • Posts 1

    Creating a zip file for write in PowerShell

    Hi,

     I'm having issues with creating a ZipFIle for writing (using PowerShell).

    When I try to use the static Create() method, I get an error as follows:

     PSH [C:\foo]: $zip = [icsharpcode.SharpZipLib.zip.ZipFile]::create("c:\foo\testzip.zip")
    Method invocation failed because [ICSharpCode.SharpZipLib.Zip.ZipFile] doesn't contain a method named 'create'.
    At line:1 char:53
    + $zip = [icsharpcode.SharpZipLib.zip.ZipFile]::create <<<< ("c:\foo\testzip.zip")
        + CategoryInfo          : InvalidOperation: (create:String) [, RuntimeException
        + FullyQualifiedErrorId : MethodNotFound

     How do I create a zip file to add to?

    Filed under: ,
Page 1 of 1 (1 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.