Use the -xr0
switch with a wildcard:
7za x my.zip -xr0!\*/FileHeader.csv -xr0!\*.pdf
Explanation: -x
operates only on filenames by default and doesn't support recursion. -xr0
will operate on subdirectories (r
) and allows the use of wildcards in these (0
).