Skip to content

Instantly share code, notes, and snippets.

@fuzzmz
Created June 7, 2012 21:52
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save fuzzmz/2891794 to your computer and use it in GitHub Desktop.
Save fuzzmz/2891794 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
)
@dreulavelle
Copy link

shouldn't use C:, variables are always the best route to take :P I usually dont even do 3rd party apps like that, people get the point with the simple foo.exe instead of \path\to\foo.exe

Nice proof of concept though :) I've got a ton of these on my Gist.GitHub.com/SpokedVictor

@Tantrumus
Copy link

Thanks for this 5 years later..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment