SharpDevelop Community

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

Create Zip File with File Filter

Last post 08-27-2008 10:07 PM by JohnReilly. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 08-27-2008 5:25 AM

    • Anson
    • Not Ranked
    • Joined on 08-27-2008
    • Posts 1

    Create Zip File with File Filter

    I used the command below to trying Zip all dbf Files in D: Drive but it doesn't work correctly. Why ?!?!

    Zip.CreateZip("D:\DS20080827.zip", "D:\", False, "dbf")

    Thanks.

     

  • 08-27-2008 10:07 PM In reply to

    Re: Create Zip File with File Filter

    Hi,

    Doesnt work properly doesnt provide many clues as to what is going wrong, but I would speculate that two things could be improved in your code.

    1. You dont specify that the scanning for files should be done recursively.
    2. The filter could include non dbf files as the regular expression you pass is not quite correct - "\.dbf$" might give better results.


    hth, -jr-

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