Code:
void ZipCheck ( char * FileCheck, char * Name )
{
FILE * Tmp;
if ( ( Tmp = fopen( FileCheck, "r" ) ) == 0 )
{
printf("%s not found, skipping.\n", Name);
}
else
{
/* Nothing */
}
fclose(Tmp);
}
void ZipExtract ( char * SourceFile, char * Destination, char * Name )
{
char * args[6];
args[0] = " -qq "; /* makes unzip.exe quiet */
args[1] = " -C "; /* make unzip.exe noncase-sensative */
args[2] = SourceFile;
args[3] = " -d "; /* create new subdirectory for file(s) */
args[4] = Destination;
args[5] = NULL; /* more output supression to unzip.exe */
printf("Copying..");
spawnv( P_WAIT, "d:\\unzip.exe", args );
printf("\b\b\b\b\b\b\b\b\bCopied - %s\n", Name);
}
You'll need the zip program found here.
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.