Encryption Parameter Values

Reference:        Encrypt_Files
                        Encryption Parameters Selection 

The actual parameters to the encryption engine are the following:

Value

Description

-a

Add files to the ZIP. This switch is optional, as it is assumed to be the desired action unless a conflicting action (such as -d delete, -f freshen, or -u update) is specified.

-a+

Turn off the file's DOS archive file attribute after adding it to the ZIP. This alters the attribute of the file on the disk, not in the ZIP.

-d

Delete files from the archive.

-ed3

Compress using Deflate with Maximum compression.

-ed2

Compress using Deflate with Normal compression (default).

-ed1

Compress using Deflate with Fast compression.

-ed0

Compress using Deflate with Super-fast compression.

-et

Store as-is (don't compress).

-f

Freshen: add files to the ZIP only if they are already in the ZIP and the disk version is the newer one.

-I

Add files to ZIP only if they have the DOS archive file attribute. Turn off the DOS archive file attribute of the file on the disk (not in the archive).

-i-

Add files to ZIP only if they have the DOS archive file attribute.

-j[hnrs] 

Mask file attributes (Hidden, Read-Only, and/or System): files are normally entered into a ZIP with their DOS file attributes intact. This switch allows you to turn off selected attributes of the file entered into the ZIP (it has no effect on the file on the disk). You can turn off any or all of the hidden, read-only, and/or system attributes. Note that hidden and system files are not included in ZIP files anyway unless you select the "w" switch as well.

 

The sub-option "n" specifies that the Novell NetWare Shareable attribute should be screened out.

-n

Store all paths, whether specified or recursed.

-o

Set the file time/date of the ZIP to that of the newest file within it. This action can also be combined with other actions.

-p

Store recursed paths. This is not meaningful unless the recursion switch,  "r", is used.

-r

Recurse directories: Examine specified subdirectories and all of their child directories.

-u

Update: take all files that are not already in the .ZIP, and also any files that are present in the .ZIP but which are newer on the disk than in the .ZIP.

-w[hs]

Search file attributes. Normally, files with the DOS file attributes hidden and system are not zipped. This switch lets you include hidden and/or system files in the search as well as normal files.