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
|
Create a Password Protected Zip Archive
This example shows how to create a password-protected Zip compression archive. ***********************************************************
*** Visual FoxPro Example Programs by Chilkat Software
*** Visual FoxPro Source Code Examples for Zip Compression
*** Visual FoxPro Examples for Zip Compression
*** Zip Compression in Visual FoxPro
***********************************************************
* This example creates a password-protected Zip archive.
* It recursively descends a directory tree and adds
* all files to the Zip.
LOCAL zip
zip = CreateObject('Chilkat.Zip2')
zip.UnlockComponent('anything for 30-day trial')
* Create a new Zip and append files and directories recursively.
zip.NewZip("myZip.zip")
zip.AppendFiles("./Tree/*",1)
* Set the options to Zip with standard Zip password protection.
* This is the same password protection used by programs
* such as WinZip.
zip.PasswordProtect = 1
zip.SetPassword("myPassword")
zip.WriteZipAndClose
RELEASE zip
RETURN .T.
***********************************************************
*** Visual FoxPro Source Code Samples for Zip Compression
*** Visual FoxPro Sample Programs by Chilkat Software
*** Visual FoxPro Samples for Zip Compression
*** Zip Compression in Visual FoxPro
***********************************************************
|
© 2000-2010 Chilkat Software, Inc. All Rights Reserved.
Mail Component · .NET Email Component · ASP Mail Component · XML Parser