zip files using C#



Is it possible to read a directory and zip the files within that directory using C#?
What I'm trying to do is, create a process (windows service, console app, etc) that will read a directory that stores log files. I want to then take all the log files that are 6 months or older and zip them automatically.

So if the job ran today, It would look for files that are 6 months old and older from today and zip them and then move that zip file into an archive folder. I would like this to run on a weekly basis which I would schedule via windows task scheduler. Is this something that can be done using C#?

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

c# vs2008 and zip files 5
C# unzipping .ZIP files 8
Zip Files In C# 11
problem when using windows services 6
Zip revisited 3
zip and backup 5
Create Mac OSX DMG files from C# on Windows? 3
C# Support for ZIP Format 5