Add to a 7-Zip archive: How to exclude certain file types/extensions?

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

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

2

2 Answers

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.

6

Also

7za -bt -mx9 a archive.7z d:\backups\* -x!*.7z

and

7za -bt -mx9 a archive.7z d:\backups\*.* -x!*.7z

Created different result. The one with *.* seem to work.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like