SharpZipLib deleting input files to zip

Posted on 2012-08-15
Last Modified: 2012-08-15
How can I delete the files that are zipped from the folder using SharpZipLib?
I currently generate files that are extracted from sql2008.  I then zip these files with SharpZipLib.  But I can't sem to find the call/parameter in SharpZipLib to delete the input files to the zip.  Currently It generates the zip downloads to client machine automatically and deletes the zip from server.  But I also want it to delete the files that goes into the zip file from server as they are temporary.  Does anyone know the command in SharpZipLib for this task? or command if thats the way to go? I am using virtual path.
Question by:CPOINT2000
    LVL 83

    Accepted Solution

    I think you will need to use IO.Files.Delete function and probably also IO.Directory.GetFiles function.

    Author Closing Comment

    Thanks, that works fine.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
    In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
    This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now