Comments (2)
Make sure to set Conditional Compilation in Make tab in project's properties dialog to include ZIP_CRYPTO = 1
setting for crypto support to get compiled from sources. By default crypto support is not compiled to reduce footprint on the final executable size.
Your code should work ok but here is another minimal sample code with error checking
With New cZipArchive
If Not .OpenArchive("c:\temp\crdata.zip") Then
Debug.Print .LastError
End If
If Not .Extract("c:\temp", Password:="1111") Then
Debug.Print .LastError
End If
End With
Note that if the password you supply is not correct then Extract
will fail with an error message in LastError
property.
If after setting ZIP_CRYPTO
conditional compilation constant this is still not working can you provide (here in this thread) a password protected .zip file you are having troubles extracting from?
from ziparchive.
Hello Sir,
It works, Thank You
from ziparchive.
Related Issues (20)
- Include PuTTY license (just to be safe) HOT 1
- Encryption under VBA HOT 2
- Small changes/features to support OpenRaster spec HOT 7
- cZipArchive.Extract: support OutputTarget as vbLong, treat as naked pointer HOT 3
- ZIP_DEFLATE conditional compilation to mirror ZIP_INFLATE? HOT 3
- Compression file size HOT 3
- Impl dynamic Huffman trees for better compression
- Use libdeflate [de]compressor under conditional compilation HOT 3
- UAC HOT 2
- ConsolePrint not work correctly on CJK HOT 1
- Zip with password is failed HOT 2
- Size of archive exceeds 2GB HOT 5
- Modified date issue HOT 1
- Source of the thunk code HOT 1
- Unzip a file from subfolder of zip, in a folder without subfolder HOT 2
- Get file zip from zip archive ?
- Size limits ? Not all files are archived HOT 2
- Extract File From Resource File HOT 7
- Extracted files Date and Time changed HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ziparchive.