Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

If I have an archive, for example, some.zip that contains one or more files, how can I extract only one file (I know the name of the file) with 7-Zip from the command line in Windows?

share|improve this question

2 Answers 2

You just add the filename at the end.

7z e [archive.zip]-o[outputdir] [fileFilter]

share|improve this answer
    
How can I add multiple file filters, say .XML and .zip? Sorry if I'm hijacking this thread, I just didn't want to add a duplicate question. –  Fr0zenFyr Jun 21 at 5:25
7z e _archive.zip_ -o_outputdir_ _fileFilter_ -r

Follow up to the answer above, add a -r flag at the end to recurse.

share|improve this answer
    
How can I add multiple file filters, say .XML and .zip? Sorry if I'm hijacking this thread, I just didn't want to add a duplicate question. –  Fr0zenFyr Jun 21 at 5:25

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.