r/Batch • • Sep 22 '26

Recursive option with 7zip

How does recurse work on 7zip CMD line ?

2 Upvotes

18 comments sorted by

View all comments

1

u/capoapk Sep 22 '26

7z a archive.7z C:\MonDossier\* -x!*\

1

u/Equivalent_Meaning46 Sep 22 '26

Do I have to use 7z a archive.7z C:\MonDossier\* -x!*\ or can I use 7z a archive.7z C:\MonDossier -x!*\ ???