SharpDevelop Community

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

help...with sharpZipLib

Last post 12-06-2006 2:54 AM by Byock. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 12-05-2006 7:10 AM

    • Byock
    • Not Ranked
    • Joined on 12-05-2006
    • Posts 3

    help...with sharpZipLib

    hello...

    I got an error message: "Access to the path "C:\ziptest.zip" is denied."

    In this part of my code....

    Dim s As ZipOutputStream = New ZipOutputStream(File.Create("C:\ziptest.zip"))

     Why is that happening? What should i do to resolve this problem?

     

     

     

  • 12-05-2006 12:15 PM In reply to

    Re: help...with sharpZipLib

    Hi,

    I was going to say the something different but I notice that the path you use is "C:\ziptest.zip" you might want to try "C:\\ziptest.zip" or @"C:\Ziptest.zip" and read the help about escape characters.  I suspect that might have something to do with it.

    hth, -jr-

  • 12-05-2006 2:54 PM In reply to

    Re: help...with sharpZipLib

    You don't have to escape \ in VB.

    The code looks correct, so maybe you simply don't have write permissons in C:\ or the file already exists and is in use by another process?

    Daniel Grunwald
  • 12-06-2006 2:54 AM In reply to

    • Byock
    • Not Ranked
    • Joined on 12-05-2006
    • Posts 3

    Re: help...with sharpZipLib

    No the file is not existing....so how will i check if i am permitted to write in C:\ ? If i dont have a write permission, how will i allow myself to have a write permission?

     

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