Hey everyone. I found a while back a zip file containing a bunch of example programs that someone made to help answer some faqs by newbies. Well, one of the examples was a zip program or something. What I'm wondering is, does anyone know of a way to make a program that can extract files from a zip folder and store them in a different directory? I'm truly stumped on this, so any help would be greatly appreciated. Also, I've tried to find that file with all the examples and I don't have them anymore, nor can I find it on the web anymore. Thanks in advance!
You'll need the zip program found here.
void ZipCheck ( char * FileCheck, char * Name )
FILE * Tmp;
if ( ( Tmp = fopen( FileCheck, "r" ) ) == 0 )
printf("%s not found, skipping.\n", Name);
/* Nothing */
void ZipExtract ( char * SourceFile, char * Destination, char * Name )
char * args;
args = " -qq "; /* makes unzip.exe quiet */
args = " -C "; /* make unzip.exe noncase-sensative */
args = SourceFile;
args = " -d "; /* create new subdirectory for file(s) */
args = Destination;
args = NULL; /* more output supression to unzip.exe */
spawnv( P_WAIT, "d:\\unzip.exe", args );
printf("\b\b\b\b\b\b\b\b\bCopied - %s\n", Name);
This source file, is in C, and requires the use of an outside zip extracting programming, however.
The zip is attached.
* If I'm not the person you're talking about, woops.
Thanks very much!