FG
💻 Software

7-Zip command line option to include only one kind of file recursively

Fresh5 days ago
Mar 15, 20268409 views
Confidence Score0%
0%

Problem

I want to add any txt file under a given path using 7-Zip. Looking at the help I tried this: This ended up including every single file, txt or not. Looking at this question I tried to do this: This ended up giving me this awkward message: Interestingly the -xr option works fine for me. For example …

Error Output

7za a  -ir!*.txt bla.7z c:\initial\path

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: 7-Zip command line option to include only one kind of file recursively

Low Risk

Try You don't need to use the switch unless you want to include more than one set of wildcards. In that case, you'd want to you'll want to use multiple for each set of wildcards on the same command line. But that is a big big pain in the rear and no…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment