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


     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 = []::create("c:\foo\")
    Method invocation failed because [ICSharpCode.SharpZipLib.Zip.ZipFile] doesn't contain a method named 'create'.
    At line:1 char:53
    + $zip = []::create <<<< ("c:\foo\")
        + 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 ( email address.