Xceed Zip for COM/ActiveX on x86/x64 Documentation
Example topics
/ Zipping files (C# example)
In This Topic
Zipping files (C# example)
In This Topic
C#
Copy Code
XceedZipLib.XceedZip zip = new XceedZipLib.XceedZipClass();
zip.License( @"your license key" );
// Specify which files will be added to the zip file zip.FilesToProcess = @"c:\windows\fonts\*";
// Specify the name and location of the zip file. // If it does not exist, the zip file willbe created. // If it exists, it will be updated to contain the new files. zip.ZipFilename = @"d:\fonts.zip";
// Zip the files XceedZipLib.xcdError result = zip.Zip(); MessageBox.Show( zip.GetErrorDescription( XceedZipLib.xcdValueType.xvtError, ( int )result ) );