I'm (trying) to develop a program to operate the 7-zip console program (7z.exe) via ShellExecute() and passing it a computer-generated list of files.
Now what I want to do is this :
I want to pass it a command line telling it to include and exclude files : i.e
include these :
c:\path\path2\path
c:\path\path2\path__\
.... more files
exclude these :
c:\path\path2\path\data\files\foo\bar\fish.dat
c:\path\path2\path__\data\slug.mp3
.... more files
so I make a command line like this :
7z a -t7z -i!"...file to include" -x!"file to exclude" ... etc etc
I'm just repeating from memory so I know the command line might not be accurate
But what I enter doesn't work. I just get everything in path and path__. What I want is an archive that looks like this inside:
.\
path\
data\
files\
foo\
bar\
<everything in path\data\files\foo\bar except for foo.dat>
path__\
data\
<everything in path__\data\ except for slug.mp3>
Could I have some help on getting this result? Thanks