7Zip - Command Line : Exclude folder(s) by wildcard pattern?
Problem
Any idea how to exclude a wild-carded path(s) from a command-line 7zip command? I'm doing something like this: and would like to exclude any or folders found underneath "FolderToArchive". To exclude files, you can use the parameter. The help file gives this example for using : That's great for excluding a file. But, again, I would like to exclude a wildcard-specified folder. Under my "FolderToArchive" there are multiple folders, under those folders there may or may not be and folders. I would like to not include these in the archive. I've tried patterns like None seem to exclude the folder. Is this simply a limitation of 7zip?
Error Output
7z.exe a -t7z archive.7z FolderToArchive\ -mx0
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Fix for: 7Zip - Command Line : Exclude folder(s) by wildcard pattern?
To exclude the bin and obj folders recursively you can use the command:
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix