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.

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

How do I leave out:

*.avi *.flac

when archiving?

share|improve this question
1  
Asked and Answered here also....superuser.com/questions/28162/… –  Moab Sep 7 '10 at 22:24

1 Answer 1

up vote 10 down vote accepted

Only possible in command line version, doesn't work in the GUI [Add to Archive] dialog

7z.exe a Archive.7z C:\Folder\* -r -x!*.avi -x!*.flac
share|improve this answer
    
Note that you might need to add r for recursive so it will be -xr!*.avi –  fedmich Apr 21 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 at 23:43

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.