Click here to Skip to main content
15,868,141 members
Articles / Programming Languages / Visual Basic
Article

A quick program that will zip source code files

Rate me:
Please Sign up or sign in to vote.
1.80/5 (4 votes)
6 Mar 2007 28.1K   724   12   1
A quick program that will zip source code files

Introduction

I wrote this program as an easy way to zip source files for projects that I was currently working on. I sometimes bring work home and needed an easy way to copy just the code and not the executables and DLL's to my thumb drive. I have supplied the source code (written in VB.NET) and solution. I use a very well written library located at (http://www.zlib.net) to perform the actual zipping.

Before running the program look at the app.config and make sure that the extensions listed are files you want. You can turn on/off each extension list with the allow bit flag. I didn't include C++ or C files since I rarely work those projects currently. To run the program you have to specify the source directory to start looking, the destination folder for the output file and the output zip file name. A log file is also created in the destination folder detailing everything that was written to the console. Have fun and let me know if you have any suggestions/problems.

Rich Turner.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
Generalzlib vs vsjlib Pin
Luca Crisi, MCP20-Aug-07 8:42
Luca Crisi, MCP20-Aug-07 8:42 
You could use the cery well written zip library stored in vsjlib, which comes native with Visual Studio!! Is there any need to use another downloaded library?!

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.