On Mac/Linux to zip/unzip password protected zip files, I use: Zip: zip -P password -r encrypted.zip folderIWantToZip Unzip: unzip -P password encrypted.zip What are the equivalent command on Windows on the command line (assuming that 7zip has been installed)? 7-Zip command to create and extract a password-protected ZIP file on ... 69 How can I create a zip archive of a directory structure in Python?

Understanding the Context

In a Python script In Python 2.7+, shutil has a make_archive function. How to create a zip archive of a directory? - Stack Overflow I read through the zipfile documentation, but couldn't understand how to unzip a file, only how to zip a file. How do I unzip all the contents of a zip file into the same directory?

Key Insights

If I have a URL that, when submitted in a web browser, pops up a dialog box to save a zip file, how would I go about catching and downloading this zip file in Python? Ever needed to compress Zip files and needed a better Zip than what comes with many of the free compression libraries out there? I.e. you needed to compress folders and subfolders as well as files. Windows Zipping can compress more than just individual files.

Final Thoughts

All you need is a way to programmatically get Windows to silently compress these Zip ... 378 How can I programatically (C#) ZIP a file (in Windows) without using any third party libraries? If using the 4.5+ Framework, there is now the ZipArchive and ZipFile classes.