You are here: Home » Utilities » File Compression » 7-Zip » Online Manual
113 (65%)   61 (35%)
Online Manual of 7-Zip 4.65
Tips: Convert Microsoft Excel to HTML | PDF to HTML | Convert paper documents to PDF / HTML

-p (set Password) switch

Specifies password.

Syntax

syntax">
-p{password}
{password}
Specifies password.

Examples

7z a archive.7z -psecret -mhe *.txt

compresses *.txt files to archive.7z using password "secret". Also it encrypts archive headers (-mhe switch), so filenames will be encrypted.

7z x archive.zip -psecret

extracts all files from archive.zip using password "secret".

Commands that can be used with this switch

a (Add), d (Delete), e (Extract), t (Test), u (Update), x (Extract with full paths)

Rate This Manual

Tips & Guides Related to 7-Zip