Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to archive a folder, but I want to exlude all media files.

How do I leave out *.avi and *.flac when archiving?

share|improve this question
Asked and Answered here… – Moab Sep 7 '10 at 22:24

1 Answer 1

up vote 19 down vote accepted

Only possible solution is to use the command-line version (it doesn't work in the GUI [Add to Archive] dialog):

7z.exe a Archive.7z C:\Folder\* -r -x!*.avi -x!*.flac

The "Parameters" input box in the GUI can only be used for compression parameters and cannot be used with standard command line parameters.

share|improve this answer
Note that you might need to add r for recursive so it will be -xr!*.avi – fedmich Apr 21 '14 at 0:00
If you use powershell make sure to wrap it quotes: "-x!*.config" I just lost half an hour over that! – Clement Aug 6 '14 at 23:43

Your Answer


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.