7Zip command line arguments
Page 1 of 1
DXWarlock
VIP Member



Posts: 11488
Location: Florida, USA
PostPosted: Wed, 15th May 2013 01:04    Post subject: 7Zip command line arguments
Anyone here familiar with 7zip command line arguments for include/exclude files?

I can get it to read a file for including with llike:
7Za a -tzip -r "D:\_backup\files.zip" @NE.txt

and list the files I want it to zip inside the NE.txt like:
D:\NewEdition\*.xml
D:\NewEdition\template.txt
D:\NewEdition\_nw*.txt
D:\NewEdition\layout.pbs
D:\NewEdition\colortable.txt

and it zips only the files names listed.

and exclude files using:
7Za a -tzip -r "D:\_backup\files.zip" -xr!@NE.txt
and using the same list..it zips everything BUT the filenames listed.

what I need is a way to do both..sort of.
I need to zip all of the above, except plan*.xml's (which is covered with *.xml so it zipped them too).
I cannot list all the xmls to include, as that can be 100's of random filenames. So I need to 'zip all the files in the list, and XML's except ones named plan*.xml'

Anyone have any tips?


-We don't control what happens to us in life, but we control how we respond to what happens in life.
-Hard times create strong men, strong men create good times, good times create weak men, and weak men create hard times. -G. Michael Hopf

Disclaimer: Post made by me are of my own creation. A delusional mind relayed in text form.
Back to top
Page 1 of 1 All times are GMT + 1 Hour
NFOHump.com Forum Index - Applications
Signature/Avatar nuking: none (can be changed in your profile)  


Display posts from previous:   

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.8 © 2001, 2002 phpBB Group