Sign in to follow this  

7zip command line - Exclude files HOW?

This topic is 3212 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey! I'd like to be able to backup some folders with 7zip and I want certain files to be left out. I'm currently using the following command line
7zG.exe a game.7z lib game -mx=9 -x!*.o!*.a!*.def!*.exe!*.dll

but it doesn't exclude the files. It's obvious that I'm not doing it right, but I'm unable to find any example on how to do this properly. NOTE: oh, I posted this in the wrong forum.

Share this post


Link to post
Share on other sites
It just doesn't work, look the command output:


C:\coding\work>7z.exe a test.7z ./test -x!*.o

7-Zip 4.64 Copyright (c) 1999-2009 Igor Pavlov 2009-01-03
Scanning

Creating archive test.7z

Compressing test\game\data\texture\default.png
Compressing test\Events\engine\cdevices.h
Compressing test\Events\engine\cdisplay.h
Compressing test\Events\engine\cevent.h
Compressing test\Events\engine\ckeyboard.h
Compressing test\Events\engine\cmouse.h
Compressing test\Events\engine\csystem.h
Compressing test\Events\engine\ctemplate.h
Compressing test\game\obj\engine\application.o <-- WTF!?!?!

Break signaled

Share this post


Link to post
Share on other sites
alright. Thank you. I just used the wrong keywords for the search.

7zip
7zg.exe

do no return useful results.

Share this post


Link to post
Share on other sites
Sign in to follow this