# e (Extract) command

Extracts files from archive to the current directory or to the output directory. Output directory can be specified by -o (Set Output Directory) switch.

This command places all extracted files to one directory. If you want extract files with full paths, you must use x (Extract with full paths) command.

7-Zip will prompt the user before overwriting existing files unless the user specifies the -y (Assume Yes on all queries) switch. If the user gives a no answer, 7-Zip will prompt must file be extracted to other filename. Then a no answer skips file and yes prompts for new filename.

7-Zip accepts the following responses:

Answer | Abbr. | Action
--- | --- | ---
Yes | y |
No | n |
Always | a | Assume YES for ALL subsequent queries of the same class
Skip | s | Assume NO for ALL subsequent queries of the same class
Quit | q | Quit the program

Abbreviated responses are allowed.

#### Examples

    7z e archive.zip

extracts all files from archive archive.zip to the current directory.

    7z e archive.zip -oc:\soft *.cpp -r

extracts all *.cpp files from archive archive.zip to c:\soft folder.

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

-ai (Include archives)
-an (Disable parsing of archive_name)
-ao (Overwrite mode)
-ax (Exclude archives)
-i (Include)
-o (Set Output Directory)
-p (Set Password)
-r (Recurse)
-so (use StdOut)
-x (Exclude)
-y (Assume Yes on all queries)

#### See also

Commands: x (Extract with full paths)