7za - Extract file with password

7z
10,877

Solution 1

This is a year+ late, but in case anyone else googles this, use:

7za x file.7z -p'your_password'

Wrapping the password in single quotes does the trick

Solution 2

Seems like the command should be

7za x file.7z -pyour_password

Whereas "-ppassword pass" uses password "password" and tries to extract "pass" file from your archive.

Share:
10,877

Related videos on Youtube

Phorce
Author by

Phorce

C++ addict in my spare time, which is hardly ever.

Updated on September 18, 2022

Comments

  • Phorce
    Phorce almost 2 years

    I have a .7z file which I need to extract the contents of. The problem is, that it's password protected and currently, I have to SSH into the server and enter the password. I would like to this without the need of this.

    Is this possible?

    I have tried:

    7za x file.7z -ppassword pass
    

    But does not work, just returns "No files to process"

  • Phorce
    Phorce almost 9 years
    No, just returns "Wrong password" Sub items error 1 - Is the right password, however
  • Admin
    Admin about 2 years
    Single quote doesn't work on windows.