Skip to content

Instantly share code, notes, and snippets.

@tuantmb
Forked from fuzzmz/extract.bat
Created June 12, 2021 04:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuantmb/9ef3f8db95226c275966e62605b02530 to your computer and use it in GitHub Desktop.
Save tuantmb/9ef3f8db95226c275966e62605b02530 to your computer and use it in GitHub Desktop.
Recursively extract archives in nested folders with 7-zip
FOR /D /r %%F in ("*") DO (
pushd %CD%
cd %%F
FOR %%X in (*.rar *.zip) DO (
"C:\Program Files\7-zip\7z.exe" x %%X
)
popd
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment