c zip files

This is a discussion on c zip files within the C Programming forums, part of the General Programming Boards category; does anyone know how to zip up a folder using c? or zipping multiple files then remove them? ps, not ...

  1. #1
    Registered User
    Join Date
    Mar 2011
    Posts
    7

    Exclamation c zip files

    does anyone know how to zip up a folder using c? or zipping multiple files then remove them?

    ps, not the popen(zip bla) way

  2. #2
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    There are several zip archive libraries available...

    zlib Home Site

    Many more with Google's help...

  3. #3
    Registered User
    Join Date
    Mar 2011
    Posts
    7
    that zlib looks usefull i had a look at the examples but could not manage to work out how to zip up a specified folder, can you help me out?

    --update

    i did a little searching apparently zlip can only zip single files and the output is a .gz i need to make a .zip archive

    if anyone knows a library and the code to zip up a dir i would appreciate it very much

    thanks everyone
    Last edited by hawlpm3; 03-26-2011 at 11:41 PM.

  4. #4
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by hawlpm3 View Post
    that zlib looks usefull i had a look at the examples but could not manage to work out how to zip up a specified folder, can you help me out?

    --update

    i did a little searching apparently zlip can only zip single files and the output is a .gz i need to make a .zip archive

    if anyone knows a library and the code to zip up a dir i would appreciate it very much

    thanks everyone


    Google is your friend!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Reading .dat files from a folder in current directory...
    By porsche911nfs in forum C++ Programming
    Replies: 7
    Last Post: 04-04-2009, 10:52 PM
  2. Working with muliple source files
    By Swarvy in forum C++ Programming
    Replies: 1
    Last Post: 10-02-2008, 09:36 AM
  3. Multiple Cpp Files
    By w4ck0z in forum C++ Programming
    Replies: 5
    Last Post: 11-14-2005, 02:41 PM
  4. Folding@Home Cboard team?
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 398
    Last Post: 10-11-2005, 09:44 AM
  5. Batch file programming
    By year2038bug in forum Tech Board
    Replies: 10
    Last Post: 09-05-2005, 04:30 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21