Celeb Glow
general | March 16, 2026

7zip extract only if password protected

I have an application that runs this command:

"C:\Program Files\7-Zip\7z.exe x myArch.zip -aoa -ppassword -odestinationFolder

I want to make sure the application extracts only zip or 7z files that are password protected and were created by me.
Unfortunately, this command extracts archives that have no password, so anyone can extract an archive with my application.
How can I prevent that?

2 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy