# u (Update) command

Update older files in the archive and add files that are new to the archive.

Note: Current version of 7-Zip cannot change archive, created with solid option switched on. To update .7z archive you must create and update archive in non-solid mode (-ms=off switch).

#### Example

    7z u archive.zip *.doc

updates *.doc files to archive archive.zip.

#### Switches that can be used with this command

-i (Include)
-m (Method)
-p (Set Password)
-r (Recurse)
-sfx (create SFX)
-si (use StdIn)
-so (use StdOut)
-t (Type of archive)
-u (Update)
-w (Working Dir)
-x (Exclude)

#### See also

Commands: a (Add), d (Delete),

Switches: -u (Update)