Chilkat
HOME
Android™
ASP
Visual Basic
VB.NET
C#
iOS (IPhone)
Objective-C
C++
C
MFC
Delphi
FoxPro
Java
Perl
PHP Extension
PHP ActiveX
Python
PowerShell
Ruby
SQL Server
VBScript
Unzip Files Matching a PatternDownloads: MS Windows Visual C/C++ Libraries Linux/CentOS C/C++ Libraries MAC OS X C/C++ Libraries Solaris C/C++ Libraries C++ Builder Libraries Demonstrates how to unzip only the files matching a pattern, such as *.txt. // Visual C++ Example Zip Compression Source Code // to Unzip all files matching *.wav // #include "stdafx.h" #include "CkZip.h" #include "CkZipEntry.h" int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { // Unlock the Zip product. // This only needs to be done once when the first CkZip object // is instantiated. CkZip zip; zip.UnlockComponent("unlockCode"); // Unzip all the .wav files. zip.OpenZip("tree.zip"); zip.ExtractMatching(".","*.wav",0); zip.CloseZip(); return 0; }
|
© 2000-2010 Chilkat Software, Inc. All Rights Reserved.