How do I compress multiple specific file extensions on the command line? (including in subdirectories)
Two ways: 7z params -r arcname *.ext1 *.ext2 or 7z params -ir!*.ext1 -ir!*.ext2 arcname. Refer to the help for the -r switch.
7z params -r arcname *.ext1 *.ext2
7z params -ir!*.ext1 -ir!*.ext2 arcname
-r
Log in to post a comment.
How do I compress multiple specific file extensions on the command line? (including in subdirectories)
Two ways:
7z params -r arcname *.ext1 *.ext2
or7z params -ir!*.ext1 -ir!*.ext2 arcname
. Refer to the help for the-r
switch.